Пример #1
0
            public IgnoreStatement(Scanner s)
            {
                for (;;)
                {
                    s.MoveNext();
                    LValue target = new LValue(s);

                    Targets.Add(target);
                    if (s.PeekNext.Value != "+")
                    {
                        break;
                    }
                }
            }
Пример #2
0
            public StashStatement(Scanner s)
            {
                s.MoveNext();

                LValue lval = new LValue(s);

                lvals.Add(lval);

                while (s.PeekNext.Value == "+")
                {
                    s.MoveNext();
                    s.MoveNext();
                    lvals.Add(new LValue(s));
                }
            }
Пример #3
0
            public CalculateStatement(Scanner s)
            {
                destination = new LValue(s);

                s.MoveNext();
                VerifyToken(s, "<-");
                s.MoveNext();

                expression = Expression.CreateExpression(s);

                //Is this an array redimension expression?
                if ((destination.IsArray) && (!destination.Subscripted))
                {
                    this.IsArrayRedimension = true;
                    expression = new Expression.ReDimExpression(s, expression);
                }
            }