renatahodovan / grammarinator

ANTLR v4 grammar-based test generator
Other
340 stars 61 forks source link

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

Closed renatahodovan closed 3 months ago

renatahodovan commented 3 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.