UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

23 lines (16 loc) 285 B
[type] Parser [grammar] grammar T; myset: ('b'|'c') ; a: 'a' myset 'd' {<writeln(Append("\"\"","$myset.stop"))>} ; <! bit complicated because of the JavaScript target !> [start] a [input] ad [output] """[@0,0:0='a',<3>,1:0] """ [errors] """line 1:1 missing {'b', 'c'} at 'd' """