Hi,
This ANTLR example does not parse input "1;" . Can you explain why? It parses "11;".
grammar TestGrammar;
options {
    output=AST;
}
expr:       mexpr (PLUS^ mexpr)* SEMI!;
mexpr:      atom (STAR^ atom)*; 
atom:       INT; 
LPAREN:     '('; 
RPAREN:     ')'; 
STAR:       '*'; 
PLUS:       '+'; 
SEMI:       ';';
protected
DIGIT:      '0'..'9';
INT:        (DIGIT)+;
WS:         (' ' | '\t' | '\n' | '\r') {
                $channel = HIDDEN;
            };