class Lsp::Parser
- Lsp::Parser
- Lsp::Lexer
- Reference
- Object
Defined in:
lsp/syntax/parser.crConstructors
Class Method Summary
Instance Method Summary
- #accept(token_types : Array, &)
- #accept?(token_type)
- #expect(token_types : Array)
- #expect(token_type)
- #parse
- #parse_args(exps = [] of ASTNode)
- #parse_expression
- #parse_var
- #raise(message, location = current_pos)
Instance methods inherited from class Lsp::Lexer
consume_name
consume_name,
consume_whitespace
consume_whitespace,
current_char
current_char,
current_pos
current_pos,
next_char
next_char,
next_char_token
next_char_token,
next_token
next_token,
peek_next_char
peek_next_char,
peek_next_token
peek_next_token,
reset_token
reset_token,
serialize_token(char, token = @token)
serialize_token,
slice_range(start_pos, end_pos)slice_range(start_pos) slice_range, token : Lsp::Token token, token=(token : Lsp::Token) token=, unknown_token unknown_token