Differences between version 11 and previous revision of PolyGlot.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 11 | Last edited on Friday, November 19, 2004 1:35:48 am | by AristotlePagaltzis | Revert |
Older page: | version 10 | Last edited on Friday, November 19, 2004 1:33:22 am | by AristotlePagaltzis | Revert |
@@ -86,33 +86,33 @@
end .(* )
C)pop% program polyglot. *){*/}
</verbatim>
-To compile (
as [C] code)
and run on [Linux]:
+Compile
as [C] and run on [Linux]:
:
-<verbatim>
-$
gcc -xc polyglot.src -o polyglot && ./polyglot
-</verbatim>
+
<verbatim>
+
gcc -xc polyglot.src -o polyglot && ./polyglot
+
</verbatim>
+ The <tt>-xc</tt> switch forces the language to be [C].
-(The <tt>-xc</tt> switch forces the language to be [C]).
+View as PostScript::
-Or you can view it as PostScript:
+ <verbatim>
+ gv polyglot.src
+ </verbatim>
-<verbatim>
-$ gv polyglot.src
-</verbatim>
+Run as a [Shell] script::
-Run as a [Shell] script:
+ <verbatim>
+ sh polyglot.src
+ # or
+ chmod +x polyglot.src && ./polyglot.src
+ </verbatim>
-<verbatim>
-sh < polyglot.src
-# or
-chmod +x polyglot.src && ./polyglot.src
-</verbatim>
-
-I think you get the idea
...
+Etc
...
----
+
!!! PolyGlot #2
The following is a polyglotic quine. (A quine is a program that prints its own source code out when run, without cheating by using open(2) on itself.)