Closed lppedd closed 8 months ago
To be clear, this testing mechanism aims at replicating what https://github.com/antlr/antlr4test-maven-plugin does.
This means you can pretty much just grab grammars and example files from https://github.com/antlr/grammars-v4.
Very nice. I do not see anything wrong, so I am merging
Trying to support syntax errors testing I ended up using the Visual Basic grammar, which is generated with a segmented serialized ATN. This revealed some issues with segmented ATNs, which are now solved at the template level.
A segmented ATN is now created by using a
StringBuilder
initialized with the correct size, instead of creating a throwaway list to join each element.