prompto.parser.ONamingLexer Maven / Gradle / Ivy
The newest version!
package prompto.parser;
import java.io.IOException;
import java.io.InputStream;
import org.antlr.v4.runtime.ANTLRErrorListener;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import prompto.problem.IProblemListener;
public class ONamingLexer extends OLexer implements ILexer {
IProblemListener problemListener;
public ONamingLexer(CharStream input) {
super(input);
}
@Override
public void setProblemListener(IProblemListener problemListener) {
this.removeErrorListeners();
if(problemListener!=null)
this.addErrorListener((ANTLRErrorListener)problemListener);
this.problemListener = problemListener;
}
@Override
public void reset(InputStream input) throws IOException {
setInputStream(CharStreams.fromStream(input));
}
@Override
public Dialect getDialect() {
return Dialect.O;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy