UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

17 lines (12 loc) 180 B
[type] Lexer [grammar] lexer grammar L; A : ["\\\\ab]+ {<writeln("\"A\"")>} ; WS : [ \n\t]+ -> skip ; [input] b"\a [output] A [@0,0:3='b"\a',<1>,1:0] [@1,4:3='<EOF>',<-1>,1:4]