Call correct Antlr visitors without call all before visitors ultil match
问题 I'm a little confused about how to do this. For example, I have this rule: stat : '(' expression ')' #ExpressionStatement; expression1 : expression2 ('==' expression2)* #ValidateExpression1 ; expression2 : literal ('!=' literal)* #ValidateExpression2 ; literal : ( 'true' | 'false') #literal ; In this case, if I pass "(true)" to the parser, how can I just visit VisitListeral() and return true instead visiting the entire tree until the match? In the visitor: VisitExpressionStatement() if I do