Category:C1R: Difference between revisions

From Rosetta Code
Content added Content deleted
mNo edit summary
(Added acknowledgement and remarks on the implementation)
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
C1R can also be regarded as an [[adaptive]] language, as the set of valid C1R programs varies with the C implementations for tasks at Rosetta Code.
C1R can also be regarded as an [[adaptive]] language, as the set of valid C1R programs varies with the C implementations for tasks at Rosetta Code.


The development of C1R has been inspired on the [[HQ9+]] and [[C0H] programming languages. HQ9+ accepts "H" in its source to print "Hello World!". C0H improves over HQ9+ by offering the full power of the C language; moreover, C0H offers a shorter path to writing a Hello World program: just create an empty file. C1R allows the user to submit a text file with just a simple reference of a task implemented in C at Rosetta Code; that reference is the implementation of the task in C1R.
The development of C1R has been inspired on the [[HQ9+]] and [[C0H]] programming languages. HQ9+ accepts "H" in its source to print "Hello World!". C0H improves over HQ9+ by offering the full power of the C language; moreover, C0H offers a shorter path to writing a Hello World program: just create an empty file. C1R allows the user to submit a text file with just a simple reference of a task implemented in C at Rosetta Code; that reference is the implementation of the task in C1R.
E.g., the following C1R program
E.g., the following C1R program
<lang c>
<lang c>
Line 21: Line 21:


==Implementation==
==Implementation==
C1R is implemented using a Shell script that calls the C compiler. The script starts by testing whether C code should be downloaded from the Rosetta Code site. The Quine task is treated as a special case.
See [[C1R Implementation]]
See [[C1R Implementation]]

==Acknowledgement==
When hearing of C0H, Jelle van Zeijl suggested to make a similar language based on downloading C code from the Rosetta Code site.


==Documentation==
==Documentation==

Latest revision as of 00:23, 10 December 2011

Language
C1R
This programming language may be used to instruct a computer to perform a task.
Execution method: Compiled (machine code)
Garbage collected: No
Parameter passing methods: By value
Type safety: Unsafe
Type strength: Weak
Type compatibility: Nominative
Type expression: Explicit
Type checking: Static


Listed below are all of the tasks on Rosetta Code which have been solved using C1R.

C1R is a general-purpose, procedural, imperative computer programming language, partially developed by André van Delft in 2011. It is a small extension to the well known compatible with::C programming language, allowing for very small programs that implement tasks that are implemented by C programs at RosettaCode.org.

C1R can also be regarded as an adaptive language, as the set of valid C1R programs varies with the C implementations for tasks at Rosetta Code.

The development of C1R has been inspired on the HQ9+ and C0H programming languages. HQ9+ accepts "H" in its source to print "Hello World!". C0H improves over HQ9+ by offering the full power of the C language; moreover, C0H offers a shorter path to writing a Hello World program: just create an empty file. C1R allows the user to submit a text file with just a simple reference of a task implemented in C at Rosetta Code; that reference is the implementation of the task in C1R. E.g., the following C1R program <lang c> Hello_world/Text </lang> does exactly the same as the C program listed at the "Hello_world/Text" page, namely print "Goodbye world!".

Implementation

C1R is implemented using a Shell script that calls the C compiler. The script starts by testing whether C code should be downloaded from the Rosetta Code site. The Quine task is treated as a special case. See C1R Implementation

Acknowledgement

When hearing of C0H, Jelle van Zeijl suggested to make a similar language based on downloading C code from the Rosetta Code site.

Documentation

To get a reference document on C1R, it is advised to upgrade a reference document on the "C" programming language, and attach a Post-it note stating C1R is like C, except that in case it contains just 1 line that directs to a Rosetta Code URL with a valid C implementation.

Subcategories

This category has the following 3 subcategories, out of 3 total.

Pages in category "C1R"

The following 3 pages are in this category, out of 3 total.