private StmtRaw ParseWhile() { StmtWhileRaw whileStmt = new StmtWhileRaw(); whileStmt.DangToken = (LexTokenText)(currLineTokenTape.Current); currLineTokenTape.MoveNext(); whileStmt.ConditionExp = ParseIfRawExpLine(); TapeMoveNext(); //BuildCurrentLine(); whileStmt.WhileBody = ParseStmtBlockRaw(whileStmt.DangToken.Position.Col); //tape.Match(TokenKind.Repeat); return(whileStmt); }
public StmtWhile(StmtWhileRaw raw, Stmt parentStmt) { Raw = raw; ParentStmt = parentStmt; StmtBody = new StmtBlock(this, raw.WhileBody); }