This is the class that represents some special expressions (like :).
Inheritance: Expression
Ejemplo n.º 1
0
        public override Expression Scan(ParseEngine engine)
        {
            foreach(var specialExpression in specialExpressions)
            {
                if (Compare(engine.Characters, engine.Pointer, specialExpression.Key))
                {
                    var exp = new SpecialExpression(engine, specialExpression.Key);
                    engine.Advance();
                    exp._specialValue = specialExpression.Value;
                    return exp;
                }
            }

            return null;
        }
Ejemplo n.º 2
0
        public override Expression Scan(ParseEngine engine)
        {
            foreach (var specialExpression in specialExpressions)
            {
                if (Compare(engine.Characters, engine.Pointer, specialExpression.Key))
                {
                    var exp = new SpecialExpression(engine, specialExpression.Key);
                    engine.Advance();
                    exp.specialValue = specialExpression.Value;
                    return(exp);
                }
            }

            return(null);
        }