Пример #1
0
 public StmtBlock(ProcAST proc, StmtBlockRaw raw)
 {
     _Proc             = proc;
     Raw               = raw;
     Stmts             = new List <Stmt>();
     this._ProcContext = proc.GetContextProc();
 }
Пример #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);
        }
Пример #3
0
        private StmtBlockRaw ParseProcBody()
        {
            StmtBlockRaw raw = new StmtBlockRaw();

            while (tape.HasCurrent && !IsSectionHead(tape.Current))
            {
                raw.LineTokens.Add(tape.Current);
                tape.MoveNext();
            }
            return(raw);
        }
Пример #4
0
 public StmtBlock(Stmt parentStmt, StmtBlockRaw raw)
 {
     ParentStmt = parentStmt;
     Raw        = raw;
     Stmts      = new List <Stmt>();
 }