4 ms·
Show HN: The Quine Programming Language
- LeonB 3y agoThe 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. I've previously shared my 'HTML quine' with HN (https://secretgeek.github.io/html_wysiwyg/html.html https://secretgeek.github.io/html_wysiwyg/html.html), so thought this language might also be appreciated. The following is a valid program in Quine: quine …and when executed it provides this output: quine