The Quine Programming Language is a language for writing quines, or rather, one specific quine.
The language has 5 tokens - q,u,i,n,e with specific meanings, and whitespace is significant: there must be none.
There is a compiler, which emits machine code executed by a custom-built virtual machine. And a debug-mode for inspecting the behaviour of the tokenizer and the VM itself.
1 comment
[ 3.2 ms ] story [ 15.0 ms ] threadThe language has 5 tokens - q,u,i,n,e with specific meanings, and whitespace is significant: there must be none.
There is a compiler, which emits machine code executed by a custom-built virtual machine. And a debug-mode for inspecting the behaviour of the tokenizer and the VM itself.
I've previously shared my 'HTML quine' with HN (https://secretgeek.github.io/html_wysiwyg/html.html), so thought this language might also be appreciated.
The following is a valid program in Quine:
…and when executed it provides this output: