예제 #1
0
        private static MoLangParser DefaultFactory(ITokenIterator iterator)
        {
            var parser = new MoLangParser(iterator);

            parser.ExpressionTraverser.Visitors.Add(new MathOptimizationVisitor());

            return(parser);
        }
예제 #2
0
 public abstract IExpression Parse(MoLangParser parser, Token token);
예제 #3
0
 public abstract IExpression Parse(MoLangParser parser, Token token, IExpression leftExpr);