1.背景 写了一个antlr 语法文件 ,如下 报错 grammar FunctionGrammar; root : stat+; stat :expr ';' #printExpr |ID '(' ')' ';' #assign ; expr : ID '(' ')' | INT #