renatahodovan / grammarinator

ANTLR v4 grammar-based test generator
Other
348 stars 62 forks source link

Fix the indexing of symbolic names of lexer rules in parser #218

Closed renatahodovan closed 6 months ago

renatahodovan commented 6 months ago

If a combined grammar doesn't contain any lexer rule definitions but inline literal constants only, then the symbolicName list of the parser is empty. The patch prepares the parser of Grammarinator for such cases.