Skip to content

Instantly share code, notes, and snippets.

Red [ author: [email protected] ]
comment {
An experiment in scanning and parsing a programming language.
When an unknown token is encountered, scanner:
1. Gives an error message
2. Gives a partial dump of the last few things is was able to recorgnize.
3. Points out the exact place in the input where it stopped.
Why?
1. Parse dialect is really useful, but when it fails it does so silently, which is not so useful.