Ejemplo n.º 1
0
 public StmtBlock(ProcAST proc, StmtBlockRaw raw)
 {
     _Proc             = proc;
     Raw               = raw;
     Stmts             = new List <Stmt>();
     this._ProcContext = proc.GetContextProc();
 }
Ejemplo n.º 2
0
        private StmtBlockRaw ParseStmtBlockRaw(int col)
        {
            StmtBlockRaw stmtBlock = new StmtBlockRaw();

            while (tape.HasCurrent && tape.Current.StartCol > col)
            {
                stmtBlock.LineTokens.Add(tape.Current);
                TapeMoveNext();
            }
            return(stmtBlock);
        }
Ejemplo n.º 3
0
        private StmtBlockRaw ParseProcBody()
        {
            StmtBlockRaw raw = new StmtBlockRaw();

            while (tape.HasCurrent && !IsSectionHead(tape.Current))
            {
                raw.LineTokens.Add(tape.Current);
                tape.MoveNext();
            }
            return(raw);
        }
Ejemplo n.º 4
0
 public StmtBlock(Stmt parentStmt, StmtBlockRaw raw)
 {
     ParentStmt = parentStmt;
     Raw        = raw;
     Stmts      = new List <Stmt>();
 }