Exemplo n.º 1
0
        private StmtRaw ParseRepeat()
        {
            StmtRepeatRaw repeatStmt = new StmtRepeatRaw();

            repeatStmt.RepeatToken = (LexTokenText)currLineTokenTape.Current;
            currLineTokenTape.MoveNext();
            repeatStmt.TimesExp = ParseRawExpLine();
            //currLineTokenTape.Match(TokenKindKeyword.Times);
            TapeMoveNext();
            repeatStmt.RepeatBody = ParseStmtBlockRaw(repeatStmt.RepeatToken.Position.Col);
            return(repeatStmt);
        }
Exemplo n.º 2
0
 public StmtRepeat(StmtRepeatRaw raw, Stmt parentStmt)
 {
     Raw        = raw;
     ParentStmt = parentStmt;
     RepeatBody = new StmtBlock(this, raw.RepeatBody);
 }