Add macro-protected debug output to scanner.cpp.
Add simpler test with terminal symbol bindings.
Fix to Makefile
Rewrite AST and AST->Grammar generator. Less code, easier to understand and modify.