Bike.Parser.Parser.ParseWhileStatement C# (CSharp) 메소드

ParseWhileStatement() 공개 메소드

public ParseWhileStatement ( ) : WhileStatement
리턴 WhileStatement
        public WhileStatement ParseWhileStatement()
        {
            var whileStatement = new WhileStatement { Token = Next() };
            Match(TokenType.While);
            Match(TokenType.LeftParen);
            whileStatement.Condition = ParseAssignmentExpression();
            Match(TokenType.RightParen);
            whileStatement.Body = ParseStatement();
            return whileStatement;
        }