コード例 #1
0
ファイル: confuse.cs プロジェクト: johnmbaughman/INTERCAL
            public IgnoreStatement(Scanner s)
            {
                for (;;)
                {
                    s.MoveNext();
                    LValue target = new LValue(s);

                    Targets.Add(target);
                    if (s.PeekNext.Value != "+")
                    {
                        break;
                    }
                }
            }
コード例 #2
0
ファイル: confuse.cs プロジェクト: johnmbaughman/INTERCAL
            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
ファイル: confuse.cs プロジェクト: johnmbaughman/INTERCAL
            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);
                }
            }