UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

23 lines (18 loc) 338 B
[type] Lexer [grammar] lexer grammar L; KEND : 'end' ; // has priority ID : 'a'..'z'+ ; WS : (' '|'\n')+; [input] end eend ending a [output] [@0,0:2='end',<1>,1:0] [@1,3:3=' ',<3>,1:3] [@2,4:7='eend',<2>,1:4] [@3,8:8=' ',<3>,1:8] [@4,9:14='ending',<2>,1:9] [@5,15:15=' ',<3>,1:15] [@6,16:16='a',<2>,1:16] [@7,17:16='<EOF>',<-1>,1:17]