這是我的語法文件,這是我的 SimpleBaseListner.java 文件// Generated from Simple.g4 by ANTLR 4.7.1import org.antlr.v4.runtime.tree.ParseTreeListener;/** * This interface defines a complete listener for a parse tree produced by * {@link SimpleParser}. */public interface SimpleListener extends ParseTreeListener {/** * Enter a parse tree produced by {@link SimpleParser#file}. * @param ctx the parse tree */void enterFile(SimpleParser.FileContext ctx);/** * Exit a parse tree produced by {@link SimpleParser#file}. * @param ctx the parse tree */void exitFile(SimpleParser.FileContext ctx);/** * Enter a parse tree produced by {@link SimpleParser#func}. * @param ctx the parse tree */void enterFunc(SimpleParser.FuncContext ctx);/** * Exit a parse tree produced by {@link SimpleParser#func}. * @param ctx the parse tree */void exitFunc(SimpleParser.FuncContext ctx);/** * Enter a parse tree produced by {@link SimpleParser#arg}. * @param ctx the parse tree */void enterArg(SimpleParser.ArgContext ctx);/** * Exit a parse tree produced by {@link SimpleParser#arg}. * @param ctx the parse tree */void exitArg(SimpleParser.ArgContext ctx);/** * Enter a parse tree produced by {@link SimpleParser#body}. * @param ctx the parse tree */void enterBody(SimpleParser.BodyContext ctx);/** * Exit a parse tree produced by {@link SimpleParser#body}. * @param ctx the parse tree */當我使用編譯它時javac SimpleBaseListner.java,出現(xiàn)以下我是 Antlr4 的新手,我不知道這里出了什么問題。雖然是說找不到符號,但是這個類型的Scope是在語法文件中定義的。因此,據(jù)我所知,它應該在 Antlr4 編譯語法文件時定義。有人能幫我嗎?
添加回答
舉報
0/150
提交
取消