Rizin
unix-like reverse engineering framework and cli tools
|
#include "./length.h"
#include "./subtree.h"
#include "tree_sitter/api.h"
#include "tree_sitter/parser.h"
Go to the source code of this file.
Classes | |
struct | Lexer |
Functions | |
void | ts_lexer_init (Lexer *) |
void | ts_lexer_delete (Lexer *) |
void | ts_lexer_set_input (Lexer *, TSInput) |
void | ts_lexer_reset (Lexer *, Length) |
void | ts_lexer_start (Lexer *) |
void | ts_lexer_finish (Lexer *, uint32_t *) |
void | ts_lexer_advance_to_end (Lexer *) |
void | ts_lexer_mark_end (Lexer *) |
bool | ts_lexer_set_included_ranges (Lexer *self, const TSRange *ranges, uint32_t count) |
TSRange * | ts_lexer_included_ranges (const Lexer *self, uint32_t *count) |
void ts_lexer_advance_to_end | ( | Lexer * | self | ) |
Definition at line 357 of file lexer.c.
References ts_lexer__advance().
Referenced by parser__halt_parse().
void ts_lexer_delete | ( | Lexer * | self | ) |
Definition at line 337 of file lexer.c.
References length_is_undefined(), TS_DECODE_ERROR, and ts_lexer__mark_end().
Referenced by ts_parser__lex().
Definition at line 395 of file lexer.c.
References count.
Referenced by ts_parser_included_ranges().
void ts_lexer_init | ( | Lexer * | self | ) |
Definition at line 275 of file lexer.c.
References NULL, ts_lexer__advance(), ts_lexer__eof(), ts_lexer__get_column(), ts_lexer__is_at_included_range_start(), ts_lexer__mark_end(), and ts_lexer_set_included_ranges().
Referenced by parser_init(), and ts_parser_new().
void ts_lexer_mark_end | ( | Lexer * | self | ) |
Definition at line 363 of file lexer.c.
References ts_lexer__mark_end().
Referenced by ts_parser__handle_error().
Definition at line 316 of file lexer.c.
References Length::bytes, and ts_lexer_goto().
Referenced by parser__lex(), ts_parser__handle_error(), ts_parser__lex(), and ts_parser_reset().
Definition at line 367 of file lexer.c.
References count, DEFAULT_RANGE, i, memcpy(), capstone::range, ts_lexer_goto(), and ts_realloc.
Referenced by ts_lexer_init(), and ts_parser_set_included_ranges().
Definition at line 308 of file lexer.c.
References input(), ts_lexer__clear_chunk(), and ts_lexer_goto().
Referenced by parser__start(), and ts_parser_parse().
void ts_lexer_start | ( | Lexer * | self | ) |
Definition at line 322 of file lexer.c.
References BYTE_ORDER_MARK, LENGTH_UNDEFINED, ts_lexer__advance(), ts_lexer__eof(), ts_lexer__get_chunk(), and ts_lexer__get_lookahead().
Referenced by parser__lex(), and ts_parser__lex().