Rizin
unix-like reverse engineering framework and cli tools
|
#include <tree_sitter/parser.h>
#include <ctype.h>
#include <wctype.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | CMD_IDENTIFIER_MAX_LENGTH 32 |
#define | ESCAPE_CHAR '\\' |
Enumerations | |
enum | TokenType { CMD_IDENTIFIER , HELP_STMT , FILE_DESCRIPTOR , EQ_SEP_CONCAT , CONCAT , CONCAT_PF_DOT , SPEC_SEP } |
enum TokenType |
Definition at line 45 of file scanner.c.
References s.
Referenced by is_mid_command(), and tree_sitter_rzcmd_external_scanner_scan().
Definition at line 53 of file scanner.c.
References s.
Referenced by ds_esc_str(), and tree_sitter_rzcmd_external_scanner_scan().
Definition at line 92 of file scanner.c.
Referenced by is_concat_eq_sep(), is_concat_pf_dot(), and tree_sitter_rzcmd_external_scanner_scan().
Definition at line 102 of file scanner.c.
References is_concat().
Referenced by tree_sitter_rzcmd_external_scanner_scan().
Definition at line 98 of file scanner.c.
References is_concat().
Referenced by tree_sitter_rzcmd_external_scanner_scan().
Definition at line 41 of file scanner.c.
References s.
Referenced by tree_sitter_rzcmd_external_scanner_scan().
Definition at line 73 of file scanner.c.
References ESCAPE_CHAR, is_at_cmd(), is_interpret_cmd(), is_remote_cmd(), and len.
Referenced by tree_sitter_rzcmd_external_scanner_scan().
Definition at line 106 of file scanner.c.
Referenced by tree_sitter_rzcmd_external_scanner_scan().
|
static |
Definition at line 110 of file scanner.c.
Referenced by tree_sitter_rzcmd_external_scanner_scan().
Definition at line 61 of file scanner.c.
Referenced by is_start_of_command(), and tree_sitter_rzcmd_external_scanner_scan().
Definition at line 67 of file scanner.c.
References is_special_start().
Referenced by tree_sitter_rzcmd_external_scanner_scan().
Definition at line 114 of file scanner.c.
References TSLexer::advance, FILE_DESCRIPTOR, TSLexer::lookahead, and TSLexer::result_symbol.
Referenced by tree_sitter_rzcmd_external_scanner_scan().
void* tree_sitter_rzcmd_external_scanner_create | ( | void | ) |
void tree_sitter_rzcmd_external_scanner_destroy | ( | void * | payload | ) |
bool tree_sitter_rzcmd_external_scanner_scan | ( | void * | payload, |
TSLexer * | lexer, | ||
const bool * | valid_symbols | ||
) |
Definition at line 144 of file scanner.c.
References TSLexer::advance, CMD_IDENTIFIER, CMD_IDENTIFIER_MAX_LENGTH, CONCAT, CONCAT_PF_DOT, EQ_SEP_CONCAT, ESCAPE_CHAR, FILE_DESCRIPTOR, HELP_STMT, is_at_cmd(), is_comment(), is_concat(), is_concat_eq_sep(), is_concat_pf_dot(), is_env_cmd(), is_mid_command(), is_pf_cmd(), is_recursive_help(), is_recursive_help_json(), is_special_start(), is_start_of_command(), TSLexer::lookahead, TSLexer::result_symbol, scan_number(), and SPEC_SEP.
Referenced by tree_sitter_rzcmd().
unsigned tree_sitter_rzcmd_external_scanner_serialize | ( | void * | payload, |
char * | buffer | ||
) |