/**
* Constructs a new parser.
* @param f the formula factory
*/
public PropositionalParser(final FormulaFactory f) {
super(f);
this.lexer = new PropositionalLexer(null);
CommonTokenStream tokens = new CommonTokenStream(this.lexer);
this.parser = new LogicNGPropositionalParser(tokens);
this.parser.setFormulaFactory(f);
this.lexer.removeErrorListeners();
this.parser.removeErrorListeners();
this.parser.setErrorHandler(new BailErrorStrategy());
}
PropositionalParser.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:LogicNG
作者:
评论列表
文章目录