What is the terminator in antlr4?
For r, why don't I enter "hello world;world;world" of characters, he will arrive ; it should stop matching。why not report errors。
grammar hello ;
r : 'hello' ID ';' ; // match keyword hello followed by an identifier
ID : [a-z]+ ; // match lower-case identifiers
WS : [ \t\r\n]+ -> skip; // skip spaces, tabs, newlines