相关代码 |
|
/* This is test2.g which is a copy of test.g and tests linking * multiple scanners/parsers together; DLG-based scanner */ typedef ANTLRCommonToken ANTLRToken; >> #token "[\ \t\n]+" #token Eof "@" class B { e : IDENTIFIER NUMBER getText());>> Eof ; } #token IDENTIFIER "[a-z]+" #token NUMBER "[0-9]+"