Skip to content

asp tree grammar sometimes needs to generate a final newline #27

@shoaibkamil

Description

@shoaibkamil

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions