UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

26 lines (19 loc) 376 B
[notes] This is a regression test for antlr/antlr4#561 "Issue with parser generation in 4.2.2" https://github.com/antlr/antlr4/issues/561 [type] Parser [grammar] grammar T; <ParserPropertyMember()> a : {<ParserPropertyCall({$parser}, "Property()")>}? ID {<writeln("\"valid\"")>} ; ID : 'a'..'z'+ ; WS : (' '|'\n') -> skip ; [start] a [input] abc [output] """valid """