class Parser::Parser

Defined in:

parser/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lexer : Lexer::Lexer) #

[View source]

Instance Method Detail

def cur_precedence #

[View source]
def cur_token_is?(token : Token::Token) #

[View source]
def errors : Array(Tuple(Token::Token, String)) #

[View source]
def errors=(errors : Array(Tuple(Token::Token, String))) #

[View source]
def expect_peek(token : Token::Token) #

[View source]
def formatted_error(error : Tuple(Token::Token, String)) #

[View source]
def next_token #

[View source]
def parse_block_statement #

[View source]
def parse_break_statement #

[View source]
def parse_const_statement #

[View source]
def parse_expression(precedence : Precedences) #

[View source]
def parse_expression_list(end_token : Token::Token) #

[View source]
def parse_expression_statement #

[View source]
def parse_function_parameters #

[View source]
def parse_let_statement #

[View source]
def parse_program #

[View source]
def parse_return_statement #

[View source]
def parse_statement #

[View source]
def peek_error(token : Token::Token) #

[View source]
def peek_precedence #

[View source]
def peek_token_is?(token : Token::Token) #

[View source]
def register_parser_array_index #

[View source]
def register_parser_array_literal #

[View source]
def register_parser_assignment_infix_expression #

[View source]
def register_parser_boolean_literal #

[View source]
def register_parser_call_expression #

[View source]
def register_parser_do_literal #

[View source]
def register_parser_float_literal #

[View source]
def register_parser_for_expression #

[View source]
def register_parser_function_literal #

[View source]
def register_parser_grouped_expression #

[View source]
def register_parser_hash_literal #

[View source]
def register_parser_identifier #

[View source]
def register_parser_if_expression #

[View source]
def register_parser_indecrement_expression #

[View source]
def register_parser_infix_expression #

[View source]
def register_parser_integer_literal #

[View source]
def register_parser_null_literal #

[View source]
def register_parser_object_access #

[View source]
def register_parser_prefix_expression #

[View source]
def register_parser_string_literal #

[View source]
def register_parser_while_expression #

[View source]