For some grammars, I have a mysterious "syntax error" that occurs at the last line in the generated code from tree_grammar.py. This seems to be fixed by adding an additional newline to the generated program text, i.e.:
program += "\n"
right before executing it.
For some grammars, I have a mysterious "syntax error" that occurs at the last line in the generated code from tree_grammar.py. This seems to be fixed by adding an additional newline to the generated program text, i.e.:
program += "\n"
right before executing it.