Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include "./lexer.h"
#include "./subtree.h"
#include "./length.h"
#include "./unicode.h"
Go to the source code of this file.
Macros | |
#define | LOG(message, character) |
Variables | |
static const int32_t | BYTE_ORDER_MARK = 0xFEFF |
static const TSRange | DEFAULT_RANGE |
#define LOG | ( | message, | |
character | |||
) |
Definition at line 200 of file lexer.c.
References LOG, skip(), and ts_lexer__do_advance().
Referenced by ts_lexer_advance_to_end(), ts_lexer_init(), and ts_lexer_start().
|
static |
Definition at line 49 of file lexer.c.
References NULL.
Referenced by ts_lexer__do_advance(), ts_lexer_goto(), and ts_lexer_set_input().
Definition at line 156 of file lexer.c.
References TSRange::end_byte, NULL, skip(), TSRange::start_byte, TSRange::start_point, ts_lexer__clear_chunk(), ts_lexer__get_chunk(), and ts_lexer__get_lookahead().
Referenced by ts_lexer__advance(), and ts_lexer__get_column().
Definition at line 42 of file lexer.c.
Referenced by ts_lexer__get_column(), ts_lexer__mark_end(), ts_lexer_init(), and ts_lexer_start().
|
static |
Definition at line 57 of file lexer.c.
References NULL.
Referenced by ts_lexer__do_advance(), ts_lexer__get_column(), ts_lexer__get_lookahead(), and ts_lexer_start().
Definition at line 239 of file lexer.c.
References ts_lexer__do_advance(), ts_lexer__eof(), ts_lexer__get_chunk(), and ts_lexer__get_lookahead().
Referenced by ts_lexer_init().
|
static |
Definition at line 74 of file lexer.c.
References TS_DECODE_ERROR, ts_decode_utf16(), ts_decode_utf8(), ts_lexer__get_chunk(), and TSInputEncodingUTF8.
Referenced by ts_lexer__do_advance(), ts_lexer__get_column(), and ts_lexer_start().
Definition at line 265 of file lexer.c.
References TSRange::start_byte.
Referenced by ts_lexer_init().
|
static |
Definition at line 215 of file lexer.c.
References TSRange::end_byte, TSRange::end_point, TSRange::start_byte, and ts_lexer__eof().
Referenced by ts_lexer_finish(), ts_lexer_init(), and ts_lexer_mark_end().
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 105 of file lexer.c.
References Length::bytes, TSRange::end_byte, TSRange::end_point, i, TSRange::start_byte, TSRange::start_point, and ts_lexer__clear_chunk().
Referenced by ts_lexer_reset(), ts_lexer_set_included_ranges(), and ts_lexer_set_input().
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().
Definition at line 24 of file lexer.c.
Referenced by ts_lexer_start().
Definition at line 26 of file lexer.c.
Referenced by ts_lexer_set_included_ranges().