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); }
public StmtRepeat(StmtRepeatRaw raw, Stmt parentStmt) { Raw = raw; ParentStmt = parentStmt; RepeatBody = new StmtBlock(this, raw.RepeatBody); }