5.1.4. syntax error: unterminated rule detected at xxx while looking for lexer rule element

详见:

【已解决】antlr v4测试Hello结果出错:syntax error: unterminated rule (missing ‘;’) detected at ‘c ‘ while looking for lexer rule element