Quine (Forth)
Because of Forth's support for parse-ahead words and access to the
From LiteratePrograms
- Other implementations: BASIC | Clojure | dc | Erlang | Forth | JavaScript / URI | Lisp | Oz | Perl | Python | Smalltalk
Because of Forth's support for parse-ahead words and access to the interpreter, the shortest quine in Forth is remarkably small.
SOURCE gives access the current line being interpreted as a string, and TYPE prints a string to the console.
<<quine.f>>=
SOURCE TYPE
| Download code |