Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public StmtWhile(StmtWhileRaw raw, Stmt parentStmt)
 {
     Raw        = raw;
     ParentStmt = parentStmt;
     StmtBody   = new StmtBlock(this, raw.WhileBody);
 }