Пример #1
0
        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);
        }
Пример #2
0
 partial void OnCreated(SimpleBooleanParser grammar);
Пример #3
0
 public orexpr_return(SimpleBooleanParser grammar)
 {
     OnCreated(grammar);
 }
Пример #4
0
 public atom_return(SimpleBooleanParser grammar)
 {
     OnCreated(grammar);
 }
Пример #5
0
 public compileUnit_return(SimpleBooleanParser grammar)
 {
     OnCreated(grammar);
 }