我正在尝试编写解析器,但是我遇到了这些错误:

时间:2018-04-20 19:43:01

标签: java antlr antlr4

我正在尝试编写一个解析器但是在我做了javac ProgramParser * .java之后我遇到了这些错误:

error: package org.antlr.v4.runtime does not exist

import org.antlr.v4.runtime.ParserRuleContext;

ProgramParserBaseListener.java:4: error: package org.antlr.v4.runtime.tree does not exist

import org.antlr.v4.runtime.tree.ErrorNode;
ProgramParserBaseListener.java:5: error: package org.antlr.v4.runtime.tree does not exist

import org.antlr.v4.runtime.tree.TerminalNode;
ProgramParserListener.java:2: error: package org.antlr.v4.runtime.tree does not exist

import org.antlr.v4.runtime.tree.ParseTreeListener;

知道为什么以及我应该做些什么来解决这个问题?

0 个答案:

没有答案