private CommonTree getTree(string customExpression) { ANTLRStringStream expression = new ANTLRStringStream(customExpression); var tokens = new CommonTokenStream(new SimpleBooleanLexer(expression)); var parser = new SimpleBooleanParser(tokens); SimpleBooleanParser.expr_return ret = parser.expr(); return((CommonTree)ret.Tree); }
partial void OnCreated(SimpleBooleanParser grammar);
public orexpr_return(SimpleBooleanParser grammar) { OnCreated(grammar); }
public atom_return(SimpleBooleanParser grammar) { OnCreated(grammar); }
public compileUnit_return(SimpleBooleanParser grammar) { OnCreated(grammar); }