Rewrite ZAPF lexer/parser without ANTLR
This repository is deprecated. Use Heptapod instead.
Status: Beta
Brought to you by:
jmcgrew
ANTLR lexes the entire file before parsing starts, which causes trouble when the source file contains directives to change the opcode set (like .NEW or a hypothetical directive to enable Inform mode), which is why ZAPF has to restart when the source file's version differs from the default. The syntax isn't very complicated, so it could make sense to abandon ANTLR in ZAPF.
Diff: