Example #1
0
        public object VisitCompound(AST.Compound Node)
        {
            foreach (object Child in Node.Children)
            {
                if (Child is AST.NullStatement)
                {
                    continue;
                }

                this.f.Visualize(this.CallStack);

                TokenPosition position = (Child as AST.AbstractSyntaxTree).Token.Position;
                this.f.MarkSingleLine(position.Line, position.Column);

                System.Threading.Thread.Sleep(1000 * this.f.trackBar1.Value);

                this.Visit(Child);

                if (Child is AST.ReturnStatement ||
                    null != this.CallStack.Peek().ret)
                {
                    break;
                }
            }

            return(null);
        }
Example #2
0
 public CompoundStatement(Token Token)
 {
     this.Token = Token;
     this.Body  = new Compound();
 }