Anonymous user
C1R Implementation: Difference between revisions
no edit summary
m (Add numeric symbols for nbsp to sed command) |
imported>Katsumi No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 5:
The "Quine" task required special treatment.
<
# C1R compiler
Line 17:
# unescape HTML codes: replace "<" by "<" etc
function unescapeHTML() {
sed -e 's/<\;/</g;s/>\;/>/g;s/ \;/ /g
}
Line 50:
cc $FILENAME1
</syntaxhighlight>
A typical test session would look like:
<
$ echo Hello_world/Text >hw.c1r
$ ./c1r hw.c1r
$ ./a.out
Goodbye, World!
</syntaxhighlight>
|