UNPKG

@mike-lischke/antlr-tgen

Version:

A generator for antlr-ng runtime test cases

33 lines (22 loc) 485 B
[notes] This is a regression test for antlr/antlr4#248 "Including grammar with only fragments breaks generated lexer". https://github.com/antlr/antlr4/issues/248 [type] CompositeParser [grammar] grammar Test; import Unicode; program : 'test' 'test'; WS : (UNICODE_CLASS_Zs)+ -> skip; [slaveGrammar] """lexer grammar Unicode; fragment UNICODE_CLASS_Zs : ' ' | ' ' | ' ' | '᠎' | ' '..' ' | ' ' | ' ' | ' ' ; """ [start] program [input] test test