lib/monkey/parser.rb
# Initialize the parser. It will use the provided lexer.
#
# @param [Lexer] lexer the lexer providing tokens
Initialize the parser. It will use the provided lexer.
Initialize the parser . It will use the provided lexer .
def parse_return_statement
      token = @cur_token
      next_token
      next_token until cur_token_is(Token::SEMICOLON)
      AST::ReturnStatement.new(token, nil)
    end
def parse_return_statement token = @cur_token next_token next_token until cur_token_is ( Token :: SEMICOLON ) AST :: ReturnStatement . new ( token , nil ) end
Initialize the parser.
Initialize the parser .
# TODO
lexer the lexer providing tokens
lexer the lexer providing tokens