Write the shortest possible program that demonstrates a programming language's entire syntax: statements, expressions, operators, reserved words, etc.
Take the language's grammar (usually in EBNF) and create a program that uses all of it.
The program doesn't have to do anything particularly useful, but if it does that's a bonus :)
- You must use all of the language's syntax: every type of statement, expression, operator, keyword, etc the language defines.
- It must be able to be run with no dependencies, except for the standard library included with the language (it doesn't need to use the entire standard lib though).
- Include a link to the language spec you used (e.g. here is the Python 2.7 grammar).