This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |