Rizin
unix-like reverse engineering framework and cli tools
parser.c File Reference

Go to the source code of this file.

Macros

#define LANGUAGE_VERSION   13
 
#define STATE_COUNT   509
 
#define LARGE_STATE_COUNT   93
 
#define SYMBOL_COUNT   243
 
#define ALIAS_COUNT   0
 
#define TOKEN_COUNT   106
 
#define EXTERNAL_TOKEN_COUNT   7
 
#define FIELD_COUNT   9
 
#define MAX_ALIAS_SEQUENCE_LENGTH   6
 
#define PRODUCTION_ID_COUNT   22
 

Enumerations

enum  {
  anon_sym_DQUOTE = 1 , aux_sym_legacy_quoted_stmt_token1 = 2 , anon_sym_TILDE = 3 , sym_grep_specifier_identifier = 4 ,
  aux_sym_grep_specifier_token1 = 5 , anon_sym_PIPE = 6 , anon_sym_PIPEH = 7 , anon_sym_AT_AT_DOT = 8 ,
  anon_sym_AT_AT_EQ = 9 , anon_sym_AT_AT_AT_EQ = 10 , anon_sym_AT_AT = 11 , anon_sym_AT_ATc_COLON = 12 ,
  anon_sym_AT_AT_ATc_COLON = 13 , anon_sym_AT_ATC = 14 , anon_sym_COLON = 15 , anon_sym_AT_ATdbt = 16 ,
  anon_sym_AT_ATdbta = 17 , anon_sym_AT_ATdbtb = 18 , anon_sym_AT_ATdbts = 19 , anon_sym_AT_ATt = 20 ,
  anon_sym_AT_ATb = 21 , anon_sym_AT_ATi = 22 , anon_sym_AT_ATii = 23 , anon_sym_AT_ATiS = 24 ,
  anon_sym_AT_ATiSS = 25 , anon_sym_AT_ATis = 26 , anon_sym_AT_ATiz = 27 , anon_sym_AT_ATf = 28 ,
  anon_sym_AT_ATF = 29 , anon_sym_AT_ATom = 30 , anon_sym_AT_ATdm = 31 , anon_sym_AT_ATr = 32 ,
  anon_sym_AT_ATs_COLON = 33 , anon_sym_AT = 34 , anon_sym_AT_BANG = 35 , anon_sym_AT_LPAREN = 36 ,
  anon_sym_RPAREN = 37 , anon_sym_ATa_COLON = 38 , anon_sym_ATb_COLON = 39 , anon_sym_ATB_COLON = 40 ,
  anon_sym_ATe_COLON = 41 , anon_sym_ATF_COLON = 42 , anon_sym_ATi_COLON = 43 , anon_sym_ATk_COLON = 44 ,
  anon_sym_ATo_COLON = 45 , anon_sym_ATr_COLON = 46 , anon_sym_ATf_COLON = 47 , anon_sym_ATs_COLON = 48 ,
  anon_sym_ATv_COLON = 49 , anon_sym_ATx_COLON = 50 , aux_sym__search_stmt_token1 = 51 , anon_sym_DOT = 52 ,
  aux_sym__interpret_stmt_token1 = 53 , aux_sym__interpret_stmt_token2 = 54 , aux_sym__interpret_stmt_token3 = 55 , aux_sym__interpret_stmt_token4 = 56 ,
  anon_sym_PIPE_DOT = 57 , anon_sym_DOT_SLASH = 58 , anon_sym_pfo = 59 , anon_sym_Cf = 60 ,
  sym_pf_dot_cmd_identifier = 61 , sym_pf_dot_full_cmd_identifier = 62 , aux_sym_pf_cmd_token1 = 63 , anon_sym_EQ = 64 ,
  aux_sym__pf_dot_arg_identifier_token1 = 65 , anon_sym_DOLLAR = 66 , anon_sym_LPAREN = 67 , aux_sym_pf_arg_identifier_token1 = 68 ,
  anon_sym_PERCENT = 69 , anon_sym_env = 70 , anon_sym_DOT_DOT_DOT = 71 , sym_system_identifier = 72 ,
  sym_question_mark_identifier = 73 , sym_pointer_identifier = 74 , sym_macro_identifier = 75 , anon_sym_SEMI = 76 ,
  anon_sym_GT = 77 , anon_sym_GT_GT = 78 , sym_html_redirect_operator = 79 , sym_html_append_operator = 80 ,
  anon_sym_COMMA = 81 , aux_sym_tmp_eval_arg_token1 = 82 , sym__eq_sep_key_identifier = 83 , aux_sym_arg_identifier_token1 = 84 ,
  aux_sym_spec_arg_identifier_token1 = 85 , aux_sym_double_quoted_arg_token1 = 86 , aux_sym_double_quoted_arg_token2 = 87 , aux_sym_double_quoted_arg_token3 = 88 ,
  anon_sym_SQUOTE = 89 , aux_sym_single_quoted_arg_token1 = 90 , aux_sym_single_quoted_arg_token2 = 91 , anon_sym_DOLLAR_LPAREN = 92 ,
  anon_sym_BQUOTE = 93 , aux_sym__dec_number_token1 = 94 , aux_sym__dec_number_token2 = 95 , sym__comment = 96 ,
  anon_sym_LF = 97 , anon_sym_CR = 98 , sym__cmd_identifier = 99 , sym__help_stmt = 100 ,
  sym_file_descriptor = 101 , sym__eq_sep_concat = 102 , sym__concat = 103 , sym__concat_pf_dot = 104 ,
  sym__spec_sep = 105 , sym_statements = 106 , sym__statements_singleline = 107 , sym__statement = 108 ,
  sym_legacy_quoted_stmt = 109 , sym__simple_stmt = 110 , sym__tmp_stmt = 111 , sym__iter_stmt = 112 ,
  sym__pipe_stmt = 113 , sym_grep_stmt = 114 , sym_grep_specifier = 115 , sym_html_disable_stmt = 116 ,
  sym_html_enable_stmt = 117 , sym_pipe_stmt = 118 , sym_iter_file_lines_stmt = 119 , sym_iter_offsets_stmt = 120 ,
  sym_iter_offsetssizes_stmt = 121 , sym_iter_hit_stmt = 122 , sym_iter_interpret_stmt = 123 , sym_iter_interpret_offsetssizes_stmt = 124 ,
  sym_iter_comment_stmt = 125 , sym_iter_dbta_stmt = 126 , sym_iter_dbtb_stmt = 127 , sym_iter_dbts_stmt = 128 ,
  sym_iter_threads_stmt = 129 , sym_iter_bbs_stmt = 130 , sym_iter_instrs_stmt = 131 , sym_iter_import_stmt = 132 ,
  sym_iter_sections_stmt = 133 , sym_iter_segments_stmt = 134 , sym_iter_symbol_stmt = 135 , sym_iter_string_stmt = 136 ,
  sym_iter_flags_stmt = 137 , sym_iter_function_stmt = 138 , sym_iter_iomap_stmt = 139 , sym_iter_dbgmap_stmt = 140 ,
  sym_iter_register_stmt = 141 , sym_iter_step_stmt = 142 , sym_tmp_seek_stmt = 143 , sym_tmp_blksz_stmt = 144 ,
  sym_tmp_fromto_stmt = 145 , sym_tmp_arch_stmt = 146 , sym_tmp_bits_stmt = 147 , sym_tmp_nthi_stmt = 148 ,
  sym_tmp_eval_stmt = 149 , sym_tmp_fs_stmt = 150 , sym_tmp_reli_stmt = 151 , sym_tmp_kuery_stmt = 152 ,
  sym_tmp_fd_stmt = 153 , sym_tmp_reg_stmt = 154 , sym_tmp_file_stmt = 155 , sym_tmp_string_stmt = 156 ,
  sym_tmp_value_stmt = 157 , sym_tmp_hex_stmt = 158 , sym_help_stmt = 159 , sym_arged_stmt = 160 ,
  sym__simple_arged_stmt_question = 161 , sym__simple_arged_stmt = 162 , sym__search_stmt = 163 , sym__math_arged_stmt = 164 ,
  sym__pointer_arged_stmt = 165 , sym__macro_arged_stmt = 166 , sym__system_stmt = 167 , sym__interpret_stmt = 168 ,
  sym__interpret_search_identifier = 169 , sym__pf_arged_stmt = 170 , sym__pf_stmts = 171 , sym_Cf_cmd = 172 ,
  sym__Cf_args = 173 , sym_pf_new_cmd = 174 , sym_pf_dot_cmd = 175 , sym_pf_cmd = 176 ,
  sym_pf_new_args = 177 , sym_pf_dot_cmd_args = 178 , sym__pf_dot_arg_identifier = 179 , sym__pf_arg_parentheses = 180 ,
  sym_pf_arg_identifier = 181 , sym__pf_arg = 182 , sym__pf_dot_arg = 183 , sym_pf_concatenation = 184 ,
  sym_pf_dot_concatenation = 185 , sym_pf_arg = 186 , sym_pf_dot_arg = 187 , sym_pf_args = 188 ,
  sym_pf_dot_args = 189 , sym__env_stmt = 190 , sym__env_stmt_identifier = 191 , sym__last_stmt = 192 ,
  sym_last_stmt_identifier = 193 , sym_repeat_stmt = 194 , sym_eq_sep_args = 195 , sym_macro_call_content = 196 ,
  sym_macro_call_full_content = 197 , sym_macro_content = 198 , sym_macro_args = 199 , sym_redirect_stmt = 200 ,
  sym__redirect_operator = 201 , sym_fdn_redirect_operator = 202 , sym_fdn_append_operator = 203 , sym__arg_with_paren = 204 ,
  sym__arg = 205 , sym_arg = 206 , sym_args = 207 , sym_tmp_eval_args = 208 ,
  sym_tmp_eval_arg = 209 , sym__eq_sep_key_single = 210 , sym__eq_sep_key_concatenation = 211 , sym__eq_sep_key = 212 ,
  sym__eq_sep_val_concatenation = 213 , sym__eq_sep_val = 214 , sym_arg_identifier = 215 , sym_spec_arg_identifier = 216 ,
  sym_double_quoted_arg = 217 , sym_single_quoted_arg = 218 , sym_cmd_substitution_arg = 219 , sym_concatenation = 220 ,
  sym__dec_number = 221 , sym_specifiers = 222 , sym_cmd_identifier = 223 , aux_sym_statements_repeat1 = 224 ,
  aux_sym_statements_repeat2 = 225 , aux_sym__statements_singleline_repeat1 = 226 , aux_sym__statements_singleline_repeat2 = 227 , aux_sym_grep_specifier_repeat1 = 228 ,
  aux_sym_pf_concatenation_repeat1 = 229 , aux_sym_pf_dot_concatenation_repeat1 = 230 , aux_sym_pf_args_repeat1 = 231 , aux_sym_pf_dot_args_repeat1 = 232 ,
  aux_sym_macro_content_repeat1 = 233 , aux_sym_args_repeat1 = 234 , aux_sym_tmp_eval_args_repeat1 = 235 , aux_sym_tmp_eval_arg_repeat1 = 236 ,
  aux_sym__eq_sep_key_concatenation_repeat1 = 237 , aux_sym__eq_sep_val_concatenation_repeat1 = 238 , aux_sym_double_quoted_arg_repeat1 = 239 , aux_sym_single_quoted_arg_repeat1 = 240 ,
  aux_sym_concatenation_repeat1 = 241 , aux_sym_specifiers_repeat1 = 242
}
 
enum  {
  field_arg = 1 , field_args = 2 , field_command = 3 , field_extra = 4 ,
  field_id = 5 , field_name = 6 , field_redirect_operator = 7 , field_specifier = 8 ,
  field_string = 9
}
 
enum  {
  ts_external_token__cmd_identifier = 0 , ts_external_token__help_stmt = 1 , ts_external_token_file_descriptor = 2 , ts_external_token__eq_sep_concat = 3 ,
  ts_external_token__concat = 4 , ts_external_token__concat_pf_dot = 5 , ts_external_token__spec_sep = 6
}
 

Functions

static bool sym_grep_specifier_identifier_character_set_1 (int32_t c)
 
static bool sym_grep_specifier_identifier_character_set_2 (int32_t c)
 
static bool sym_grep_specifier_identifier_character_set_3 (int32_t c)
 
static bool aux_sym__pf_dot_arg_identifier_token1_character_set_1 (int32_t c)
 
static bool aux_sym__pf_dot_arg_identifier_token1_character_set_2 (int32_t c)
 
static bool aux_sym__pf_dot_arg_identifier_token1_character_set_3 (int32_t c)
 
static bool aux_sym_pf_arg_identifier_token1_character_set_1 (int32_t c)
 
static bool aux_sym_pf_arg_identifier_token1_character_set_2 (int32_t c)
 
static bool aux_sym_pf_arg_identifier_token1_character_set_3 (int32_t c)
 
static bool aux_sym_tmp_eval_arg_token1_character_set_1 (int32_t c)
 
static bool sym__eq_sep_key_identifier_character_set_1 (int32_t c)
 
static bool sym__eq_sep_key_identifier_character_set_2 (int32_t c)
 
static bool sym__eq_sep_key_identifier_character_set_3 (int32_t c)
 
static bool aux_sym_arg_identifier_token1_character_set_1 (int32_t c)
 
static bool aux_sym_arg_identifier_token1_character_set_2 (int32_t c)
 
static bool aux_sym_arg_identifier_token1_character_set_3 (int32_t c)
 
static bool aux_sym_arg_identifier_token1_character_set_4 (int32_t c)
 
static bool aux_sym_spec_arg_identifier_token1_character_set_1 (int32_t c)
 
static bool aux_sym_spec_arg_identifier_token1_character_set_2 (int32_t c)
 
static bool aux_sym_spec_arg_identifier_token1_character_set_3 (int32_t c)
 
static bool ts_lex (TSLexer *lexer, TSStateId state)
 
void * tree_sitter_rzcmd_external_scanner_create (void)
 
void tree_sitter_rzcmd_external_scanner_destroy (void *)
 
bool tree_sitter_rzcmd_external_scanner_scan (void *, TSLexer *, const bool *)
 
unsigned tree_sitter_rzcmd_external_scanner_serialize (void *, char *)
 
void tree_sitter_rzcmd_external_scanner_deserialize (void *, const char *, unsigned)
 
const TSLanguagetree_sitter_rzcmd (void)
 

Variables

static const char *const ts_symbol_names []
 
static const TSSymbol ts_symbol_map []
 
static const TSSymbolMetadata ts_symbol_metadata []
 
static const char *const ts_field_names []
 
static const TSFieldMapSlice ts_field_map_slices [PRODUCTION_ID_COUNT]
 
static const TSFieldMapEntry ts_field_map_entries []
 
static const TSSymbol ts_alias_sequences [PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH]
 
static const uint16_t ts_non_terminal_alias_map []
 
static const TSLexMode ts_lex_modes [STATE_COUNT]
 
static const TSSymbol ts_external_scanner_symbol_map [EXTERNAL_TOKEN_COUNT]
 
static const bool ts_external_scanner_states [14][EXTERNAL_TOKEN_COUNT]
 
static const uint16_t ts_parse_table [LARGE_STATE_COUNT][SYMBOL_COUNT]
 
static const uint16_t ts_small_parse_table []
 
static const uint32_t ts_small_parse_table_map []
 
static const TSParseActionEntry ts_parse_actions []
 

Macro Definition Documentation

◆ ALIAS_COUNT

#define ALIAS_COUNT   0

Definition at line 12 of file parser.c.

◆ EXTERNAL_TOKEN_COUNT

#define EXTERNAL_TOKEN_COUNT   7

Definition at line 14 of file parser.c.

◆ FIELD_COUNT

#define FIELD_COUNT   9

Definition at line 15 of file parser.c.

◆ LANGUAGE_VERSION

#define LANGUAGE_VERSION   13

Definition at line 8 of file parser.c.

◆ LARGE_STATE_COUNT

#define LARGE_STATE_COUNT   93

Definition at line 10 of file parser.c.

◆ MAX_ALIAS_SEQUENCE_LENGTH

#define MAX_ALIAS_SEQUENCE_LENGTH   6

Definition at line 16 of file parser.c.

◆ PRODUCTION_ID_COUNT

#define PRODUCTION_ID_COUNT   22

Definition at line 17 of file parser.c.

◆ STATE_COUNT

#define STATE_COUNT   509

Definition at line 9 of file parser.c.

◆ SYMBOL_COUNT

#define SYMBOL_COUNT   243

Definition at line 11 of file parser.c.

◆ TOKEN_COUNT

#define TOKEN_COUNT   106

Definition at line 13 of file parser.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
anon_sym_DQUOTE 
aux_sym_legacy_quoted_stmt_token1 
anon_sym_TILDE 
sym_grep_specifier_identifier 
aux_sym_grep_specifier_token1 
anon_sym_PIPE 
anon_sym_PIPEH 
anon_sym_AT_AT_DOT 
anon_sym_AT_AT_EQ 
anon_sym_AT_AT_AT_EQ 
anon_sym_AT_AT 
anon_sym_AT_ATc_COLON 
anon_sym_AT_AT_ATc_COLON 
anon_sym_AT_ATC 
anon_sym_COLON 
anon_sym_AT_ATdbt 
anon_sym_AT_ATdbta 
anon_sym_AT_ATdbtb 
anon_sym_AT_ATdbts 
anon_sym_AT_ATt 
anon_sym_AT_ATb 
anon_sym_AT_ATi 
anon_sym_AT_ATii 
anon_sym_AT_ATiS 
anon_sym_AT_ATiSS 
anon_sym_AT_ATis 
anon_sym_AT_ATiz 
anon_sym_AT_ATf 
anon_sym_AT_ATF 
anon_sym_AT_ATom 
anon_sym_AT_ATdm 
anon_sym_AT_ATr 
anon_sym_AT_ATs_COLON 
anon_sym_AT 
anon_sym_AT_BANG 
anon_sym_AT_LPAREN 
anon_sym_RPAREN 
anon_sym_ATa_COLON 
anon_sym_ATb_COLON 
anon_sym_ATB_COLON 
anon_sym_ATe_COLON 
anon_sym_ATF_COLON 
anon_sym_ATi_COLON 
anon_sym_ATk_COLON 
anon_sym_ATo_COLON 
anon_sym_ATr_COLON 
anon_sym_ATf_COLON 
anon_sym_ATs_COLON 
anon_sym_ATv_COLON 
anon_sym_ATx_COLON 
aux_sym__search_stmt_token1 
anon_sym_DOT 
aux_sym__interpret_stmt_token1 
aux_sym__interpret_stmt_token2 
aux_sym__interpret_stmt_token3 
aux_sym__interpret_stmt_token4 
anon_sym_PIPE_DOT 
anon_sym_DOT_SLASH 
anon_sym_pfo 
anon_sym_Cf 
sym_pf_dot_cmd_identifier 
sym_pf_dot_full_cmd_identifier 
aux_sym_pf_cmd_token1 
anon_sym_EQ 
aux_sym__pf_dot_arg_identifier_token1 
anon_sym_DOLLAR 
anon_sym_LPAREN 
aux_sym_pf_arg_identifier_token1 
anon_sym_PERCENT 
anon_sym_env 
anon_sym_DOT_DOT_DOT 
sym_system_identifier 
sym_question_mark_identifier 
sym_pointer_identifier 
sym_macro_identifier 
anon_sym_SEMI 
anon_sym_GT 
anon_sym_GT_GT 
sym_html_redirect_operator 
sym_html_append_operator 
anon_sym_COMMA 
aux_sym_tmp_eval_arg_token1 
sym__eq_sep_key_identifier 
aux_sym_arg_identifier_token1 
aux_sym_spec_arg_identifier_token1 
aux_sym_double_quoted_arg_token1 
aux_sym_double_quoted_arg_token2 
aux_sym_double_quoted_arg_token3 
anon_sym_SQUOTE 
aux_sym_single_quoted_arg_token1 
aux_sym_single_quoted_arg_token2 
anon_sym_DOLLAR_LPAREN 
anon_sym_BQUOTE 
aux_sym__dec_number_token1 
aux_sym__dec_number_token2 
sym__comment 
anon_sym_LF 
anon_sym_CR 
sym__cmd_identifier 
sym__help_stmt 
sym_file_descriptor 
sym__eq_sep_concat 
sym__concat 
sym__concat_pf_dot 
sym__spec_sep 
sym_statements 
sym__statements_singleline 
sym__statement 
sym_legacy_quoted_stmt 
sym__simple_stmt 
sym__tmp_stmt 
sym__iter_stmt 
sym__pipe_stmt 
sym_grep_stmt 
sym_grep_specifier 
sym_html_disable_stmt 
sym_html_enable_stmt 
sym_pipe_stmt 
sym_iter_file_lines_stmt 
sym_iter_offsets_stmt 
sym_iter_offsetssizes_stmt 
sym_iter_hit_stmt 
sym_iter_interpret_stmt 
sym_iter_interpret_offsetssizes_stmt 
sym_iter_comment_stmt 
sym_iter_dbta_stmt 
sym_iter_dbtb_stmt 
sym_iter_dbts_stmt 
sym_iter_threads_stmt 
sym_iter_bbs_stmt 
sym_iter_instrs_stmt 
sym_iter_import_stmt 
sym_iter_sections_stmt 
sym_iter_segments_stmt 
sym_iter_symbol_stmt 
sym_iter_string_stmt 
sym_iter_flags_stmt 
sym_iter_function_stmt 
sym_iter_iomap_stmt 
sym_iter_dbgmap_stmt 
sym_iter_register_stmt 
sym_iter_step_stmt 
sym_tmp_seek_stmt 
sym_tmp_blksz_stmt 
sym_tmp_fromto_stmt 
sym_tmp_arch_stmt 
sym_tmp_bits_stmt 
sym_tmp_nthi_stmt 
sym_tmp_eval_stmt 
sym_tmp_fs_stmt 
sym_tmp_reli_stmt 
sym_tmp_kuery_stmt 
sym_tmp_fd_stmt 
sym_tmp_reg_stmt 
sym_tmp_file_stmt 
sym_tmp_string_stmt 
sym_tmp_value_stmt 
sym_tmp_hex_stmt 
sym_help_stmt 
sym_arged_stmt 
sym__simple_arged_stmt_question 
sym__simple_arged_stmt 
sym__search_stmt 
sym__math_arged_stmt 
sym__pointer_arged_stmt 
sym__macro_arged_stmt 
sym__system_stmt 
sym__interpret_stmt 
sym__interpret_search_identifier 
sym__pf_arged_stmt 
sym__pf_stmts 
sym_Cf_cmd 
sym__Cf_args 
sym_pf_new_cmd 
sym_pf_dot_cmd 
sym_pf_cmd 
sym_pf_new_args 
sym_pf_dot_cmd_args 
sym__pf_dot_arg_identifier 
sym__pf_arg_parentheses 
sym_pf_arg_identifier 
sym__pf_arg 
sym__pf_dot_arg 
sym_pf_concatenation 
sym_pf_dot_concatenation 
sym_pf_arg 
sym_pf_dot_arg 
sym_pf_args 
sym_pf_dot_args 
sym__env_stmt 
sym__env_stmt_identifier 
sym__last_stmt 
sym_last_stmt_identifier 
sym_repeat_stmt 
sym_eq_sep_args 
sym_macro_call_content 
sym_macro_call_full_content 
sym_macro_content 
sym_macro_args 
sym_redirect_stmt 
sym__redirect_operator 
sym_fdn_redirect_operator 
sym_fdn_append_operator 
sym__arg_with_paren 
sym__arg 
sym_arg 
sym_args 
sym_tmp_eval_args 
sym_tmp_eval_arg 
sym__eq_sep_key_single 
sym__eq_sep_key_concatenation 
sym__eq_sep_key 
sym__eq_sep_val_concatenation 
sym__eq_sep_val 
sym_arg_identifier 
sym_spec_arg_identifier 
sym_double_quoted_arg 
sym_single_quoted_arg 
sym_cmd_substitution_arg 
sym_concatenation 
sym__dec_number 
sym_specifiers 
sym_cmd_identifier 
aux_sym_statements_repeat1 
aux_sym_statements_repeat2 
aux_sym__statements_singleline_repeat1 
aux_sym__statements_singleline_repeat2 
aux_sym_grep_specifier_repeat1 
aux_sym_pf_concatenation_repeat1 
aux_sym_pf_dot_concatenation_repeat1 
aux_sym_pf_args_repeat1 
aux_sym_pf_dot_args_repeat1 
aux_sym_macro_content_repeat1 
aux_sym_args_repeat1 
aux_sym_tmp_eval_args_repeat1 
aux_sym_tmp_eval_arg_repeat1 
aux_sym__eq_sep_key_concatenation_repeat1 
aux_sym__eq_sep_val_concatenation_repeat1 
aux_sym_double_quoted_arg_repeat1 
aux_sym_single_quoted_arg_repeat1 
aux_sym_concatenation_repeat1 
aux_sym_specifiers_repeat1 

Definition at line 19 of file parser.c.

19  {
20  anon_sym_DQUOTE = 1,
22  anon_sym_TILDE = 3,
25  anon_sym_PIPE = 6,
26  anon_sym_PIPEH = 7,
30  anon_sym_AT_AT = 11,
33  anon_sym_AT_ATC = 14,
34  anon_sym_COLON = 15,
35  anon_sym_AT_ATdbt = 16,
36  anon_sym_AT_ATdbta = 17,
37  anon_sym_AT_ATdbtb = 18,
38  anon_sym_AT_ATdbts = 19,
39  anon_sym_AT_ATt = 20,
40  anon_sym_AT_ATb = 21,
41  anon_sym_AT_ATi = 22,
42  anon_sym_AT_ATii = 23,
43  anon_sym_AT_ATiS = 24,
44  anon_sym_AT_ATiSS = 25,
45  anon_sym_AT_ATis = 26,
46  anon_sym_AT_ATiz = 27,
47  anon_sym_AT_ATf = 28,
48  anon_sym_AT_ATF = 29,
49  anon_sym_AT_ATom = 30,
50  anon_sym_AT_ATdm = 31,
51  anon_sym_AT_ATr = 32,
53  anon_sym_AT = 34,
54  anon_sym_AT_BANG = 35,
55  anon_sym_AT_LPAREN = 36,
56  anon_sym_RPAREN = 37,
57  anon_sym_ATa_COLON = 38,
58  anon_sym_ATb_COLON = 39,
59  anon_sym_ATB_COLON = 40,
60  anon_sym_ATe_COLON = 41,
61  anon_sym_ATF_COLON = 42,
62  anon_sym_ATi_COLON = 43,
63  anon_sym_ATk_COLON = 44,
64  anon_sym_ATo_COLON = 45,
65  anon_sym_ATr_COLON = 46,
66  anon_sym_ATf_COLON = 47,
67  anon_sym_ATs_COLON = 48,
68  anon_sym_ATv_COLON = 49,
69  anon_sym_ATx_COLON = 50,
71  anon_sym_DOT = 52,
76  anon_sym_PIPE_DOT = 57,
77  anon_sym_DOT_SLASH = 58,
78  anon_sym_pfo = 59,
79  anon_sym_Cf = 60,
83  anon_sym_EQ = 64,
85  anon_sym_DOLLAR = 66,
86  anon_sym_LPAREN = 67,
88  anon_sym_PERCENT = 69,
89  anon_sym_env = 70,
95  anon_sym_SEMI = 76,
96  anon_sym_GT = 77,
97  anon_sym_GT_GT = 78,
100  anon_sym_COMMA = 81,
108  anon_sym_SQUOTE = 89,
112  anon_sym_BQUOTE = 93,
115  sym__comment = 96,
116  anon_sym_LF = 97,
117  anon_sym_CR = 98,
118  sym__cmd_identifier = 99,
119  sym__help_stmt = 100,
120  sym_file_descriptor = 101,
121  sym__eq_sep_concat = 102,
122  sym__concat = 103,
123  sym__concat_pf_dot = 104,
124  sym__spec_sep = 105,
125  sym_statements = 106,
127  sym__statement = 108,
129  sym__simple_stmt = 110,
130  sym__tmp_stmt = 111,
131  sym__iter_stmt = 112,
132  sym__pipe_stmt = 113,
133  sym_grep_stmt = 114,
134  sym_grep_specifier = 115,
135  sym_html_disable_stmt = 116,
136  sym_html_enable_stmt = 117,
137  sym_pipe_stmt = 118,
139  sym_iter_offsets_stmt = 120,
141  sym_iter_hit_stmt = 122,
144  sym_iter_comment_stmt = 125,
145  sym_iter_dbta_stmt = 126,
146  sym_iter_dbtb_stmt = 127,
147  sym_iter_dbts_stmt = 128,
148  sym_iter_threads_stmt = 129,
149  sym_iter_bbs_stmt = 130,
150  sym_iter_instrs_stmt = 131,
151  sym_iter_import_stmt = 132,
154  sym_iter_symbol_stmt = 135,
155  sym_iter_string_stmt = 136,
156  sym_iter_flags_stmt = 137,
158  sym_iter_iomap_stmt = 139,
159  sym_iter_dbgmap_stmt = 140,
161  sym_iter_step_stmt = 142,
162  sym_tmp_seek_stmt = 143,
163  sym_tmp_blksz_stmt = 144,
164  sym_tmp_fromto_stmt = 145,
165  sym_tmp_arch_stmt = 146,
166  sym_tmp_bits_stmt = 147,
167  sym_tmp_nthi_stmt = 148,
168  sym_tmp_eval_stmt = 149,
169  sym_tmp_fs_stmt = 150,
170  sym_tmp_reli_stmt = 151,
171  sym_tmp_kuery_stmt = 152,
172  sym_tmp_fd_stmt = 153,
173  sym_tmp_reg_stmt = 154,
174  sym_tmp_file_stmt = 155,
175  sym_tmp_string_stmt = 156,
176  sym_tmp_value_stmt = 157,
177  sym_tmp_hex_stmt = 158,
178  sym_help_stmt = 159,
179  sym_arged_stmt = 160,
182  sym__search_stmt = 163,
183  sym__math_arged_stmt = 164,
185  sym__macro_arged_stmt = 166,
186  sym__system_stmt = 167,
187  sym__interpret_stmt = 168,
189  sym__pf_arged_stmt = 170,
190  sym__pf_stmts = 171,
191  sym_Cf_cmd = 172,
192  sym__Cf_args = 173,
193  sym_pf_new_cmd = 174,
194  sym_pf_dot_cmd = 175,
195  sym_pf_cmd = 176,
196  sym_pf_new_args = 177,
197  sym_pf_dot_cmd_args = 178,
200  sym_pf_arg_identifier = 181,
201  sym__pf_arg = 182,
202  sym__pf_dot_arg = 183,
203  sym_pf_concatenation = 184,
205  sym_pf_arg = 186,
206  sym_pf_dot_arg = 187,
207  sym_pf_args = 188,
208  sym_pf_dot_args = 189,
209  sym__env_stmt = 190,
211  sym__last_stmt = 192,
213  sym_repeat_stmt = 194,
214  sym_eq_sep_args = 195,
217  sym_macro_content = 198,
218  sym_macro_args = 199,
219  sym_redirect_stmt = 200,
223  sym__arg_with_paren = 204,
224  sym__arg = 205,
225  sym_arg = 206,
226  sym_args = 207,
227  sym_tmp_eval_args = 208,
228  sym_tmp_eval_arg = 209,
231  sym__eq_sep_key = 212,
233  sym__eq_sep_val = 214,
234  sym_arg_identifier = 215,
236  sym_double_quoted_arg = 217,
237  sym_single_quoted_arg = 218,
239  sym_concatenation = 220,
240  sym__dec_number = 221,
241  sym_specifiers = 222,
242  sym_cmd_identifier = 223,
253  aux_sym_args_repeat1 = 234,
262 };
@ sym_tmp_fd_stmt
Definition: parser.c:172
@ anon_sym_AT_ATi
Definition: parser.c:41
@ sym_pf_arg_identifier
Definition: parser.c:200
@ aux_sym__pf_dot_arg_identifier_token1
Definition: parser.c:84
@ sym__env_stmt
Definition: parser.c:209
@ sym_tmp_fs_stmt
Definition: parser.c:169
@ sym_file_descriptor
Definition: parser.c:120
@ anon_sym_AT
Definition: parser.c:53
@ sym_tmp_seek_stmt
Definition: parser.c:162
@ anon_sym_AT_ATdm
Definition: parser.c:50
@ sym_arg_identifier
Definition: parser.c:234
@ anon_sym_LPAREN
Definition: parser.c:86
@ sym__system_stmt
Definition: parser.c:186
@ sym__simple_arged_stmt_question
Definition: parser.c:180
@ sym__pointer_arged_stmt
Definition: parser.c:184
@ anon_sym_RPAREN
Definition: parser.c:56
@ anon_sym_SQUOTE
Definition: parser.c:108
@ sym_tmp_bits_stmt
Definition: parser.c:166
@ sym_eq_sep_args
Definition: parser.c:214
@ sym_pointer_identifier
Definition: parser.c:93
@ sym_concatenation
Definition: parser.c:239
@ sym_pf_args
Definition: parser.c:207
@ aux_sym_double_quoted_arg_repeat1
Definition: parser.c:258
@ sym_pf_dot_concatenation
Definition: parser.c:204
@ sym_macro_args
Definition: parser.c:218
@ sym_statements
Definition: parser.c:125
@ anon_sym_DOT
Definition: parser.c:71
@ anon_sym_AT_AT_ATc_COLON
Definition: parser.c:32
@ sym__cmd_identifier
Definition: parser.c:118
@ sym_help_stmt
Definition: parser.c:178
@ aux_sym__eq_sep_key_concatenation_repeat1
Definition: parser.c:256
@ aux_sym_legacy_quoted_stmt_token1
Definition: parser.c:21
@ sym__iter_stmt
Definition: parser.c:131
@ sym_question_mark_identifier
Definition: parser.c:92
@ aux_sym__interpret_stmt_token2
Definition: parser.c:73
@ sym_html_enable_stmt
Definition: parser.c:136
@ sym_tmp_hex_stmt
Definition: parser.c:177
@ anon_sym_ATr_COLON
Definition: parser.c:65
@ sym_iter_symbol_stmt
Definition: parser.c:154
@ aux_sym_pf_arg_identifier_token1
Definition: parser.c:87
@ aux_sym_specifiers_repeat1
Definition: parser.c:261
@ anon_sym_DOT_SLASH
Definition: parser.c:77
@ sym_pf_dot_cmd_args
Definition: parser.c:197
@ aux_sym_grep_specifier_token1
Definition: parser.c:24
@ aux_sym_statements_repeat1
Definition: parser.c:243
@ sym_redirect_stmt
Definition: parser.c:219
@ sym_tmp_eval_args
Definition: parser.c:227
@ anon_sym_AT_ATf
Definition: parser.c:47
@ sym_pipe_stmt
Definition: parser.c:137
@ sym_pf_dot_arg
Definition: parser.c:206
@ sym_iter_function_stmt
Definition: parser.c:157
@ sym__Cf_args
Definition: parser.c:192
@ anon_sym_PIPE
Definition: parser.c:25
@ anon_sym_AT_ATom
Definition: parser.c:49
@ anon_sym_AT_ATt
Definition: parser.c:39
@ anon_sym_ATa_COLON
Definition: parser.c:57
@ sym_Cf_cmd
Definition: parser.c:191
@ sym__pf_dot_arg
Definition: parser.c:202
@ anon_sym_LF
Definition: parser.c:116
@ sym__env_stmt_identifier
Definition: parser.c:210
@ sym__pf_stmts
Definition: parser.c:190
@ sym_fdn_append_operator
Definition: parser.c:222
@ aux_sym__dec_number_token1
Definition: parser.c:113
@ anon_sym_COLON
Definition: parser.c:34
@ sym__pf_arg
Definition: parser.c:201
@ aux_sym__interpret_stmt_token4
Definition: parser.c:75
@ aux_sym_double_quoted_arg_token2
Definition: parser.c:106
@ sym_pf_new_args
Definition: parser.c:196
@ anon_sym_AT_BANG
Definition: parser.c:54
@ sym_iter_comment_stmt
Definition: parser.c:144
@ anon_sym_Cf
Definition: parser.c:79
@ anon_sym_BQUOTE
Definition: parser.c:112
@ anon_sym_EQ
Definition: parser.c:83
@ sym__arg_with_paren
Definition: parser.c:223
@ anon_sym_ATx_COLON
Definition: parser.c:69
@ sym__simple_stmt
Definition: parser.c:129
@ anon_sym_AT_ATF
Definition: parser.c:48
@ sym_iter_iomap_stmt
Definition: parser.c:158
@ anon_sym_ATF_COLON
Definition: parser.c:61
@ sym_spec_arg_identifier
Definition: parser.c:235
@ sym_iter_interpret_stmt
Definition: parser.c:142
@ sym_pf_dot_cmd_identifier
Definition: parser.c:80
@ aux_sym_macro_content_repeat1
Definition: parser.c:252
@ aux_sym_double_quoted_arg_token3
Definition: parser.c:107
@ sym_tmp_eval_arg
Definition: parser.c:228
@ sym_iter_register_stmt
Definition: parser.c:160
@ sym_last_stmt_identifier
Definition: parser.c:212
@ sym__last_stmt
Definition: parser.c:211
@ anon_sym_PIPE_DOT
Definition: parser.c:76
@ anon_sym_ATk_COLON
Definition: parser.c:63
@ aux_sym_tmp_eval_args_repeat1
Definition: parser.c:254
@ aux_sym_single_quoted_arg_repeat1
Definition: parser.c:259
@ sym__comment
Definition: parser.c:115
@ anon_sym_AT_ATb
Definition: parser.c:40
@ anon_sym_AT_ATs_COLON
Definition: parser.c:52
@ sym__search_stmt
Definition: parser.c:182
@ sym_macro_identifier
Definition: parser.c:94
@ sym__eq_sep_key_identifier
Definition: parser.c:102
@ anon_sym_DQUOTE
Definition: parser.c:20
@ sym_pf_dot_cmd
Definition: parser.c:194
@ anon_sym_AT_ATr
Definition: parser.c:51
@ sym_tmp_reli_stmt
Definition: parser.c:170
@ sym__help_stmt
Definition: parser.c:119
@ sym_tmp_arch_stmt
Definition: parser.c:165
@ sym_legacy_quoted_stmt
Definition: parser.c:128
@ anon_sym_AT_AT_EQ
Definition: parser.c:28
@ sym_iter_hit_stmt
Definition: parser.c:141
@ sym__pf_arged_stmt
Definition: parser.c:189
@ sym_arg
Definition: parser.c:225
@ anon_sym_env
Definition: parser.c:89
@ sym_iter_instrs_stmt
Definition: parser.c:150
@ anon_sym_AT_ATc_COLON
Definition: parser.c:31
@ sym_tmp_fromto_stmt
Definition: parser.c:164
@ sym__dec_number
Definition: parser.c:240
@ anon_sym_ATb_COLON
Definition: parser.c:58
@ anon_sym_PERCENT
Definition: parser.c:88
@ sym__statements_singleline
Definition: parser.c:126
@ aux_sym__dec_number_token2
Definition: parser.c:114
@ sym__eq_sep_key_single
Definition: parser.c:229
@ sym_html_disable_stmt
Definition: parser.c:135
@ aux_sym_spec_arg_identifier_token1
Definition: parser.c:104
@ sym_iter_dbts_stmt
Definition: parser.c:147
@ anon_sym_DOLLAR_LPAREN
Definition: parser.c:111
@ aux_sym_grep_specifier_repeat1
Definition: parser.c:247
@ anon_sym_AT_ATiz
Definition: parser.c:46
@ sym_single_quoted_arg
Definition: parser.c:237
@ sym__arg
Definition: parser.c:224
@ aux_sym__interpret_stmt_token3
Definition: parser.c:74
@ sym__spec_sep
Definition: parser.c:124
@ sym_double_quoted_arg
Definition: parser.c:236
@ anon_sym_ATf_COLON
Definition: parser.c:66
@ sym_tmp_reg_stmt
Definition: parser.c:173
@ sym__eq_sep_val_concatenation
Definition: parser.c:232
@ sym_cmd_identifier
Definition: parser.c:242
@ sym__pf_dot_arg_identifier
Definition: parser.c:198
@ sym_tmp_kuery_stmt
Definition: parser.c:171
@ anon_sym_ATe_COLON
Definition: parser.c:60
@ anon_sym_AT_ATiSS
Definition: parser.c:44
@ sym_iter_flags_stmt
Definition: parser.c:156
@ sym_iter_dbtb_stmt
Definition: parser.c:146
@ sym__simple_arged_stmt
Definition: parser.c:181
@ aux_sym_pf_args_repeat1
Definition: parser.c:250
@ sym_iter_bbs_stmt
Definition: parser.c:149
@ aux_sym_pf_dot_args_repeat1
Definition: parser.c:251
@ anon_sym_PIPEH
Definition: parser.c:26
@ aux_sym_single_quoted_arg_token1
Definition: parser.c:109
@ aux_sym_args_repeat1
Definition: parser.c:253
@ sym_iter_dbta_stmt
Definition: parser.c:145
@ anon_sym_AT_ATdbta
Definition: parser.c:36
@ anon_sym_DOLLAR
Definition: parser.c:85
@ sym__pipe_stmt
Definition: parser.c:132
@ aux_sym_pf_cmd_token1
Definition: parser.c:82
@ sym__redirect_operator
Definition: parser.c:220
@ anon_sym_AT_ATdbt
Definition: parser.c:35
@ aux_sym__interpret_stmt_token1
Definition: parser.c:72
@ anon_sym_AT_AT
Definition: parser.c:30
@ sym__concat
Definition: parser.c:122
@ sym_system_identifier
Definition: parser.c:91
@ sym_macro_call_content
Definition: parser.c:215
@ sym_cmd_substitution_arg
Definition: parser.c:238
@ anon_sym_AT_AT_AT_EQ
Definition: parser.c:29
@ anon_sym_AT_AT_DOT
Definition: parser.c:27
@ sym__eq_sep_key_concatenation
Definition: parser.c:230
@ anon_sym_DOT_DOT_DOT
Definition: parser.c:90
@ aux_sym__statements_singleline_repeat1
Definition: parser.c:245
@ aux_sym_tmp_eval_arg_repeat1
Definition: parser.c:255
@ aux_sym_double_quoted_arg_token1
Definition: parser.c:105
@ sym_pf_arg
Definition: parser.c:205
@ sym_iter_threads_stmt
Definition: parser.c:148
@ sym_arged_stmt
Definition: parser.c:179
@ sym_grep_specifier
Definition: parser.c:134
@ sym_html_redirect_operator
Definition: parser.c:98
@ aux_sym_pf_concatenation_repeat1
Definition: parser.c:248
@ anon_sym_AT_ATC
Definition: parser.c:33
@ anon_sym_AT_ATiS
Definition: parser.c:43
@ sym_pf_dot_args
Definition: parser.c:208
@ aux_sym_tmp_eval_arg_token1
Definition: parser.c:101
@ sym__pf_arg_parentheses
Definition: parser.c:199
@ sym__eq_sep_concat
Definition: parser.c:121
@ sym__eq_sep_key
Definition: parser.c:231
@ sym__statement
Definition: parser.c:127
@ sym__interpret_stmt
Definition: parser.c:187
@ sym_grep_stmt
Definition: parser.c:133
@ sym__concat_pf_dot
Definition: parser.c:123
@ sym_pf_cmd
Definition: parser.c:195
@ sym_iter_sections_stmt
Definition: parser.c:152
@ sym_fdn_redirect_operator
Definition: parser.c:221
@ sym_iter_step_stmt
Definition: parser.c:161
@ anon_sym_AT_ATis
Definition: parser.c:45
@ sym_grep_specifier_identifier
Definition: parser.c:23
@ sym__eq_sep_val
Definition: parser.c:233
@ sym_iter_dbgmap_stmt
Definition: parser.c:159
@ aux_sym_statements_repeat2
Definition: parser.c:244
@ anon_sym_AT_ATdbtb
Definition: parser.c:37
@ sym__macro_arged_stmt
Definition: parser.c:185
@ sym_iter_segments_stmt
Definition: parser.c:153
@ anon_sym_ATo_COLON
Definition: parser.c:64
@ sym_tmp_nthi_stmt
Definition: parser.c:167
@ sym_iter_offsetssizes_stmt
Definition: parser.c:140
@ sym_pf_new_cmd
Definition: parser.c:193
@ sym_html_append_operator
Definition: parser.c:99
@ sym_tmp_file_stmt
Definition: parser.c:174
@ sym_macro_call_full_content
Definition: parser.c:216
@ anon_sym_TILDE
Definition: parser.c:22
@ anon_sym_SEMI
Definition: parser.c:95
@ sym_iter_interpret_offsetssizes_stmt
Definition: parser.c:143
@ sym_iter_import_stmt
Definition: parser.c:151
@ anon_sym_GT_GT
Definition: parser.c:97
@ sym__tmp_stmt
Definition: parser.c:130
@ sym__interpret_search_identifier
Definition: parser.c:188
@ sym_pf_dot_full_cmd_identifier
Definition: parser.c:81
@ anon_sym_COMMA
Definition: parser.c:100
@ sym_args
Definition: parser.c:226
@ aux_sym__eq_sep_val_concatenation_repeat1
Definition: parser.c:257
@ anon_sym_AT_ATii
Definition: parser.c:42
@ anon_sym_AT_LPAREN
Definition: parser.c:55
@ anon_sym_ATv_COLON
Definition: parser.c:68
@ sym_tmp_value_stmt
Definition: parser.c:176
@ aux_sym__statements_singleline_repeat2
Definition: parser.c:246
@ sym_specifiers
Definition: parser.c:241
@ sym_tmp_eval_stmt
Definition: parser.c:168
@ anon_sym_AT_ATdbts
Definition: parser.c:38
@ sym_iter_string_stmt
Definition: parser.c:155
@ sym_repeat_stmt
Definition: parser.c:213
@ sym_tmp_blksz_stmt
Definition: parser.c:163
@ aux_sym__search_stmt_token1
Definition: parser.c:70
@ aux_sym_arg_identifier_token1
Definition: parser.c:103
@ sym__math_arged_stmt
Definition: parser.c:183
@ sym_tmp_string_stmt
Definition: parser.c:175
@ aux_sym_concatenation_repeat1
Definition: parser.c:260
@ sym_iter_offsets_stmt
Definition: parser.c:139
@ anon_sym_CR
Definition: parser.c:117
@ anon_sym_ATB_COLON
Definition: parser.c:59
@ sym_pf_concatenation
Definition: parser.c:203
@ aux_sym_pf_dot_concatenation_repeat1
Definition: parser.c:249
@ sym_macro_content
Definition: parser.c:217
@ aux_sym_single_quoted_arg_token2
Definition: parser.c:110
@ anon_sym_pfo
Definition: parser.c:78
@ sym_iter_file_lines_stmt
Definition: parser.c:138
@ anon_sym_ATs_COLON
Definition: parser.c:67
@ anon_sym_GT
Definition: parser.c:96
@ anon_sym_ATi_COLON
Definition: parser.c:62

◆ anonymous enum

anonymous enum
Enumerator
field_arg 
field_args 
field_command 
field_extra 
field_id 
field_name 
field_redirect_operator 
field_specifier 
field_string 

Definition at line 1731 of file parser.c.

1731  {
1732  field_arg = 1,
1733  field_args = 2,
1734  field_command = 3,
1735  field_extra = 4,
1736  field_id = 5,
1737  field_name = 6,
1739  field_specifier = 8,
1740  field_string = 9,
1741 };
@ field_redirect_operator
Definition: parser.c:1738
@ field_string
Definition: parser.c:1740
@ field_name
Definition: parser.c:1737
@ field_arg
Definition: parser.c:1732
@ field_args
Definition: parser.c:1733
@ field_extra
Definition: parser.c:1735
@ field_command
Definition: parser.c:1734
@ field_specifier
Definition: parser.c:1739
@ field_id
Definition: parser.c:1736

◆ anonymous enum

anonymous enum
Enumerator
ts_external_token__cmd_identifier 
ts_external_token__help_stmt 
ts_external_token_file_descriptor 
ts_external_token__eq_sep_concat 
ts_external_token__concat 
ts_external_token__concat_pf_dot 
ts_external_token__spec_sep 

Definition at line 4055 of file parser.c.

4055  {
4063 };
@ ts_external_token__concat_pf_dot
Definition: parser.c:4061
@ ts_external_token_file_descriptor
Definition: parser.c:4058
@ ts_external_token__concat
Definition: parser.c:4060
@ ts_external_token__help_stmt
Definition: parser.c:4057
@ ts_external_token__spec_sep
Definition: parser.c:4062
@ ts_external_token__cmd_identifier
Definition: parser.c:4056
@ ts_external_token__eq_sep_concat
Definition: parser.c:4059

Function Documentation

◆ aux_sym__pf_dot_arg_identifier_token1_character_set_1()

static bool aux_sym__pf_dot_arg_identifier_token1_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 1895 of file parser.c.

1895  {
1896  return (c < ';'
1897  ? (c < '\r'
1898  ? (c < '\n'
1899  ? c == 0
1900  : c <= '\n')
1901  : (c <= '\r' || (c < '\''
1902  ? c == '"'
1903  : c <= ')')))
1904  : (c <= ';' || (c < '|'
1905  ? (c < '@'
1906  ? (c >= '=' && c <= '>')
1907  : c <= '@')
1908  : (c <= '|' || c == '~'))));
1909 }
#define c(i)
Definition: sha256.c:43

Referenced by ts_lex().

◆ aux_sym__pf_dot_arg_identifier_token1_character_set_2()

static bool aux_sym__pf_dot_arg_identifier_token1_character_set_2 ( int32_t  c)
inlinestatic

Definition at line 1911 of file parser.c.

1911  {
1912  return (c < '.'
1913  ? (c < ' '
1914  ? (c < '\t'
1915  ? c == 0
1916  : (c <= '\n' || c == '\r'))
1917  : (c <= ' ' || (c < '\''
1918  ? (c >= '"' && c <= '#')
1919  : c <= ')')))
1920  : (c <= '.' || (c < '`'
1921  ? (c < '='
1922  ? c == ';'
1923  : (c <= '>' || c == '@'))
1924  : (c <= '`' || (c < '~'
1925  ? c == '|'
1926  : c <= '~')))));
1927 }

Referenced by ts_lex().

◆ aux_sym__pf_dot_arg_identifier_token1_character_set_3()

static bool aux_sym__pf_dot_arg_identifier_token1_character_set_3 ( int32_t  c)
inlinestatic

Definition at line 1929 of file parser.c.

1929  {
1930  return (c < ';'
1931  ? (c < '\''
1932  ? (c < '"'
1933  ? c == '\t'
1934  : c <= '#')
1935  : (c <= ')' || c == '.'))
1936  : (c <= ';' || (c < '`'
1937  ? (c < '@'
1938  ? (c >= '=' && c <= '>')
1939  : c <= '@')
1940  : (c <= '`' || (c >= '|' && c <= '~')))));
1941 }

Referenced by ts_lex().

◆ aux_sym_arg_identifier_token1_character_set_1()

static bool aux_sym_arg_identifier_token1_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 2067 of file parser.c.

2067  {
2068  return (c < ';'
2069  ? (c < ' '
2070  ? (c < '\t'
2071  ? c == 0
2072  : (c <= '\n' || c == '\r'))
2073  : (c <= ' ' || (c < '\''
2074  ? (c >= '"' && c <= '#')
2075  : c <= ')')))
2076  : (c <= ';' || (c < '`'
2077  ? (c < '@'
2078  ? c == '>'
2079  : (c <= '@' || c == '\\'))
2080  : (c <= '`' || (c < '~'
2081  ? c == '|'
2082  : c <= '~')))));
2083 }

References c.

Referenced by ts_lex().

◆ aux_sym_arg_identifier_token1_character_set_2()

static bool aux_sym_arg_identifier_token1_character_set_2 ( int32_t  c)
inlinestatic

Definition at line 2085 of file parser.c.

2085  {
2086  return (c < ','
2087  ? (c < ' '
2088  ? (c < '\t'
2089  ? c == 0
2090  : (c <= '\n' || c == '\r'))
2091  : (c <= ' ' || (c < '\''
2092  ? (c >= '"' && c <= '#')
2093  : c <= ')')))
2094  : (c <= ',' || (c < '`'
2095  ? (c < '@'
2096  ? c == ';'
2097  : c <= '@')
2098  : (c <= '`' || (c < '~'
2099  ? c == '|'
2100  : c <= '~')))));
2101 }

References c.

Referenced by ts_lex().

◆ aux_sym_arg_identifier_token1_character_set_3()

static bool aux_sym_arg_identifier_token1_character_set_3 ( int32_t  c)
inlinestatic

Definition at line 2103 of file parser.c.

2103  {
2104  return (c < ','
2105  ? (c < ' '
2106  ? (c < '\t'
2107  ? c == 0
2108  : (c <= '\n' || c == '\r'))
2109  : (c <= ' ' || (c < '\''
2110  ? (c >= '"' && c <= '#')
2111  : c <= ')')))
2112  : (c <= ',' || (c < '`'
2113  ? (c < '>'
2114  ? c == ';'
2115  : (c <= '>' || c == '@'))
2116  : (c <= '`' || (c < '~'
2117  ? c == '|'
2118  : c <= '~')))));
2119 }

References c.

Referenced by ts_lex().

◆ aux_sym_arg_identifier_token1_character_set_4()

static bool aux_sym_arg_identifier_token1_character_set_4 ( int32_t  c)
inlinestatic

Definition at line 2121 of file parser.c.

2121  {
2122  return (c < ';'
2123  ? (c < '\''
2124  ? (c < '"'
2125  ? c == '\t'
2126  : c <= '#')
2127  : (c <= ')' || c == ','))
2128  : (c <= ';' || (c < '`'
2129  ? (c < '@'
2130  ? c == '>'
2131  : c <= '@')
2132  : (c <= '`' || (c >= '|' && c <= '~')))));
2133 }

Referenced by ts_lex().

◆ aux_sym_pf_arg_identifier_token1_character_set_1()

static bool aux_sym_pf_arg_identifier_token1_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 1943 of file parser.c.

1943  {
1944  return (c < ';'
1945  ? (c < '\r'
1946  ? (c < '\n'
1947  ? c == 0
1948  : c <= '\n')
1949  : (c <= '\r' || (c < '\''
1950  ? c == '"'
1951  : c <= '\'')))
1952  : (c <= ';' || (c < '|'
1953  ? (c < '@'
1954  ? c == '>'
1955  : c <= '@')
1956  : (c <= '|' || c == '~'))));
1957 }

Referenced by ts_lex().

◆ aux_sym_pf_arg_identifier_token1_character_set_2()

static bool aux_sym_pf_arg_identifier_token1_character_set_2 ( int32_t  c)
inlinestatic

Definition at line 1959 of file parser.c.

1959  {
1960  return (c < ';'
1961  ? (c < ' '
1962  ? (c < '\t'
1963  ? c == 0
1964  : (c <= '\n' || c == '\r'))
1965  : (c <= ' ' || (c < '\''
1966  ? (c >= '"' && c <= '#')
1967  : c <= ')')))
1968  : (c <= ';' || (c < '`'
1969  ? (c < '@'
1970  ? c == '>'
1971  : c <= '@')
1972  : (c <= '`' || (c < '~'
1973  ? c == '|'
1974  : c <= '~')))));
1975 }

References c.

Referenced by ts_lex().

◆ aux_sym_pf_arg_identifier_token1_character_set_3()

static bool aux_sym_pf_arg_identifier_token1_character_set_3 ( int32_t  c)
inlinestatic

Definition at line 1977 of file parser.c.

1977  {
1978  return (c < '\''
1979  ? (c < '\r'
1980  ? (c < '\t'
1981  ? c == 0
1982  : c <= '\n')
1983  : (c <= '\r' || (c < '"'
1984  ? c == ' '
1985  : c <= '#')))
1986  : (c <= ')' || (c < '`'
1987  ? (c < '@'
1988  ? c == ';'
1989  : c <= '@')
1990  : (c <= '`' || (c < '~'
1991  ? c == '|'
1992  : c <= '~')))));
1993 }

References c.

Referenced by ts_lex().

◆ aux_sym_spec_arg_identifier_token1_character_set_1()

static bool aux_sym_spec_arg_identifier_token1_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 2135 of file parser.c.

2135  {
2136  return (c < ':'
2137  ? (c < '"'
2138  ? (c < '\n'
2139  ? c == 0
2140  : (c <= '\n' || c == '\r'))
2141  : (c <= '"' || (c < ','
2142  ? (c >= '\'' && c <= ')')
2143  : c <= ',')))
2144  : (c <= ';' || (c < '`'
2145  ? (c < '@'
2146  ? c == '>'
2147  : c <= '@')
2148  : (c <= '`' || (c < '~'
2149  ? c == '|'
2150  : c <= '~')))));
2151 }

References c.

Referenced by ts_lex().

◆ aux_sym_spec_arg_identifier_token1_character_set_2()

static bool aux_sym_spec_arg_identifier_token1_character_set_2 ( int32_t  c)
inlinestatic

Definition at line 2153 of file parser.c.

2153  {
2154  return (c < ','
2155  ? (c < ' '
2156  ? (c < '\t'
2157  ? c == 0
2158  : (c <= '\n' || c == '\r'))
2159  : (c <= ' ' || (c < '\''
2160  ? (c >= '"' && c <= '#')
2161  : c <= ')')))
2162  : (c <= ',' || (c < '`'
2163  ? (c < '>'
2164  ? (c >= ':' && c <= ';')
2165  : (c <= '>' || c == '@'))
2166  : (c <= '`' || (c < '~'
2167  ? c == '|'
2168  : c <= '~')))));
2169 }

References c.

Referenced by ts_lex().

◆ aux_sym_spec_arg_identifier_token1_character_set_3()

static bool aux_sym_spec_arg_identifier_token1_character_set_3 ( int32_t  c)
inlinestatic

Definition at line 2171 of file parser.c.

2171  {
2172  return (c < ':'
2173  ? (c < '\''
2174  ? (c < '"'
2175  ? c == '\t'
2176  : c <= '#')
2177  : (c <= ')' || c == ','))
2178  : (c <= ';' || (c < '`'
2179  ? (c < '@'
2180  ? c == '>'
2181  : c <= '@')
2182  : (c <= '`' || (c >= '|' && c <= '~')))));
2183 }

Referenced by ts_lex().

◆ aux_sym_tmp_eval_arg_token1_character_set_1()

static bool aux_sym_tmp_eval_arg_token1_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 1995 of file parser.c.

1995  {
1996  return (c < ';'
1997  ? (c < '"'
1998  ? (c < '\n'
1999  ? c == 0
2000  : (c <= '\n' || c == '\r'))
2001  : (c <= '$' || (c < ','
2002  ? (c >= '\'' && c <= ')')
2003  : c <= ',')))
2004  : (c <= ';' || (c < '`'
2005  ? (c < '@'
2006  ? c == '>'
2007  : (c <= '@' || c == '\\'))
2008  : (c <= '`' || (c < '~'
2009  ? c == '|'
2010  : c <= '~')))));
2011 }

References c.

Referenced by ts_lex().

◆ sym__eq_sep_key_identifier_character_set_1()

static bool sym__eq_sep_key_identifier_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 2013 of file parser.c.

2013  {
2014  return (c < ';'
2015  ? (c < '\r'
2016  ? (c < '\n'
2017  ? c == 0
2018  : c <= '\n')
2019  : (c <= '\r' || (c < ','
2020  ? (c >= '(' && c <= ')')
2021  : c <= ',')))
2022  : (c <= ';' || (c < '\\'
2023  ? (c < '@'
2024  ? (c >= '=' && c <= '>')
2025  : c <= '@')
2026  : (c <= '\\' || (c < '~'
2027  ? c == '|'
2028  : c <= '~')))));
2029 }

References c.

Referenced by ts_lex().

◆ sym__eq_sep_key_identifier_character_set_2()

static bool sym__eq_sep_key_identifier_character_set_2 ( int32_t  c)
inlinestatic

Definition at line 2031 of file parser.c.

2031  {
2032  return (c < ';'
2033  ? (c < ' '
2034  ? (c < '\t'
2035  ? c == 0
2036  : (c <= '\n' || c == '\r'))
2037  : (c <= ' ' || (c < '\''
2038  ? (c >= '"' && c <= '#')
2039  : (c <= ')' || c == ','))))
2040  : (c <= ';' || (c < '`'
2041  ? (c < '@'
2042  ? (c >= '=' && c <= '>')
2043  : (c <= '@' || c == '\\'))
2044  : (c <= '`' || (c < '~'
2045  ? c == '|'
2046  : c <= '~')))));
2047 }

Referenced by ts_lex().

◆ sym__eq_sep_key_identifier_character_set_3()

static bool sym__eq_sep_key_identifier_character_set_3 ( int32_t  c)
inlinestatic

Definition at line 2049 of file parser.c.

2049  {
2050  return (c < ';'
2051  ? (c < ' '
2052  ? (c < '\t'
2053  ? c == 0
2054  : (c <= '\n' || c == '\r'))
2055  : (c <= ' ' || (c < '\''
2056  ? (c >= '"' && c <= '#')
2057  : (c <= ')' || c == ','))))
2058  : (c <= ';' || (c < '`'
2059  ? (c < '@'
2060  ? c == '='
2061  : (c <= '@' || c == '\\'))
2062  : (c <= '`' || (c < '~'
2063  ? c == '|'
2064  : c <= '~')))));
2065 }

Referenced by ts_lex().

◆ sym_grep_specifier_identifier_character_set_1()

static bool sym_grep_specifier_identifier_character_set_1 ( int32_t  c)
inlinestatic

Definition at line 1851 of file parser.c.

1851  {
1852  return (c < '('
1853  ? (c < '\r'
1854  ? (c < '\n'
1855  ? c == 0
1856  : c <= '\n')
1857  : (c <= '\r' || c == '#'))
1858  : (c <= '(' || (c < '`'
1859  ? (c < '>'
1860  ? c == ';'
1861  : c <= '>')
1862  : (c <= '`' || c == '|'))));
1863 }

References c.

Referenced by ts_lex().

◆ sym_grep_specifier_identifier_character_set_2()

static bool sym_grep_specifier_identifier_character_set_2 ( int32_t  c)
inlinestatic

Definition at line 1865 of file parser.c.

1865  {
1866  return (c < ';'
1867  ? (c < '\r'
1868  ? (c < '\n'
1869  ? c == 0
1870  : c <= '\n')
1871  : (c <= '\r' || (c < '('
1872  ? c == '#'
1873  : c <= ')')))
1874  : (c <= ';' || (c < '`'
1875  ? (c < '@'
1876  ? c == '>'
1877  : c <= '@')
1878  : (c <= '`' || c == '|'))));
1879 }

Referenced by ts_lex().

◆ sym_grep_specifier_identifier_character_set_3()

static bool sym_grep_specifier_identifier_character_set_3 ( int32_t  c)
inlinestatic

Definition at line 1881 of file parser.c.

1881  {
1882  return (c < '('
1883  ? (c < '\r'
1884  ? (c < '\n'
1885  ? c == 0
1886  : c <= '\n')
1887  : (c <= '\r' || c == '#'))
1888  : (c <= ')' || (c < '`'
1889  ? (c < '@'
1890  ? c == ';'
1891  : c <= '@')
1892  : (c <= '`' || c == '|'))));
1893 }

Referenced by ts_lex().

◆ tree_sitter_rzcmd()

const TSLanguage* tree_sitter_rzcmd ( void  )

Definition at line 28912 of file parser.c.

28912  {
28913  static const TSLanguage language = {
28915  .symbol_count = SYMBOL_COUNT,
28916  .alias_count = ALIAS_COUNT,
28917  .token_count = TOKEN_COUNT,
28918  .external_token_count = EXTERNAL_TOKEN_COUNT,
28919  .state_count = STATE_COUNT,
28920  .large_state_count = LARGE_STATE_COUNT,
28921  .production_id_count = PRODUCTION_ID_COUNT,
28922  .field_count = FIELD_COUNT,
28923  .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
28924  .parse_table = &ts_parse_table[0][0],
28925  .small_parse_table = ts_small_parse_table,
28926  .small_parse_table_map = ts_small_parse_table_map,
28927  .parse_actions = ts_parse_actions,
28928  .symbol_names = ts_symbol_names,
28929  .field_names = ts_field_names,
28930  .field_map_slices = ts_field_map_slices,
28931  .field_map_entries = ts_field_map_entries,
28932  .symbol_metadata = ts_symbol_metadata,
28933  .public_symbol_map = ts_symbol_map,
28934  .alias_map = ts_non_terminal_alias_map,
28935  .alias_sequences = &ts_alias_sequences[0][0],
28936  .lex_modes = ts_lex_modes,
28937  .lex_fn = ts_lex,
28938  .external_scanner = {
28946  },
28947  };
28948  return &language;
28949 }
static const TSFieldMapEntry ts_field_map_entries[]
Definition: parser.c:1776
static const uint16_t ts_non_terminal_alias_map[]
Definition: parser.c:1844
static const uint32_t ts_small_parse_table_map[]
Definition: parser.c:27772
static const TSSymbol ts_symbol_map[]
Definition: parser.c:510
static bool ts_lex(TSLexer *lexer, TSStateId state)
Definition: parser.c:2185
#define FIELD_COUNT
Definition: parser.c:15
static const TSParseActionEntry ts_parse_actions[]
Definition: parser.c:28191
void * tree_sitter_rzcmd_external_scanner_create(void)
Definition: scanner.c:23
static const uint16_t ts_small_parse_table[]
Definition: parser.c:12122
#define STATE_COUNT
Definition: parser.c:9
static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT]
Definition: parser.c:4065
static const TSLexMode ts_lex_modes[STATE_COUNT]
Definition: parser.c:3543
#define LARGE_STATE_COUNT
Definition: parser.c:10
void tree_sitter_rzcmd_external_scanner_deserialize(void *, const char *, unsigned)
Definition: scanner.c:34
unsigned tree_sitter_rzcmd_external_scanner_serialize(void *, char *)
Definition: scanner.c:30
#define SYMBOL_COUNT
Definition: parser.c:11
#define PRODUCTION_ID_COUNT
Definition: parser.c:17
static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT]
Definition: parser.c:1756
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT]
Definition: parser.c:4133
bool tree_sitter_rzcmd_external_scanner_scan(void *, TSLexer *, const bool *)
Definition: scanner.c:144
#define TOKEN_COUNT
Definition: parser.c:13
static const TSSymbolMetadata ts_symbol_metadata[]
Definition: parser.c:756
#define ALIAS_COUNT
Definition: parser.c:12
static const char *const ts_symbol_names[]
Definition: parser.c:264
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH]
Definition: parser.c:1817
#define MAX_ALIAS_SEQUENCE_LENGTH
Definition: parser.c:16
static const char *const ts_field_names[]
Definition: parser.c:1743
static const bool ts_external_scanner_states[14][EXTERNAL_TOKEN_COUNT]
Definition: parser.c:4075
#define EXTERNAL_TOKEN_COUNT
Definition: parser.c:14
void tree_sitter_rzcmd_external_scanner_destroy(void *)
Definition: scanner.c:27
#define LANGUAGE_VERSION
Definition: parser.c:8
uint32_t version
Definition: parser.h:91

References ALIAS_COUNT, EXTERNAL_TOKEN_COUNT, FIELD_COUNT, LANGUAGE_VERSION, LARGE_STATE_COUNT, MAX_ALIAS_SEQUENCE_LENGTH, PRODUCTION_ID_COUNT, STATE_COUNT, SYMBOL_COUNT, TOKEN_COUNT, tree_sitter_rzcmd_external_scanner_create(), tree_sitter_rzcmd_external_scanner_deserialize(), tree_sitter_rzcmd_external_scanner_destroy(), tree_sitter_rzcmd_external_scanner_scan(), tree_sitter_rzcmd_external_scanner_serialize(), ts_alias_sequences, ts_external_scanner_states, ts_external_scanner_symbol_map, ts_field_map_entries, ts_field_map_slices, ts_field_names, ts_lex(), ts_lex_modes, ts_non_terminal_alias_map, ts_parse_actions, ts_parse_table, ts_small_parse_table, ts_small_parse_table_map, ts_symbol_map, ts_symbol_metadata, ts_symbol_names, and TSLanguage::version.

Referenced by rz_core_cmd_new().

◆ tree_sitter_rzcmd_external_scanner_create()

void* tree_sitter_rzcmd_external_scanner_create ( void  )

Definition at line 23 of file scanner.c.

23  {
24  return NULL;
25 }
#define NULL
Definition: cris-opc.c:27

References NULL.

Referenced by tree_sitter_rzcmd().

◆ tree_sitter_rzcmd_external_scanner_deserialize()

void tree_sitter_rzcmd_external_scanner_deserialize ( void *  payload,
const char *  buffer,
unsigned  length 
)

Definition at line 34 of file scanner.c.

34  {
35 }

Referenced by tree_sitter_rzcmd().

◆ tree_sitter_rzcmd_external_scanner_destroy()

void tree_sitter_rzcmd_external_scanner_destroy ( void *  payload)

Definition at line 27 of file scanner.c.

27  {
28 }

Referenced by tree_sitter_rzcmd().

◆ tree_sitter_rzcmd_external_scanner_scan()

bool tree_sitter_rzcmd_external_scanner_scan ( void *  payload,
TSLexer lexer,
const bool valid_symbols 
)

Definition at line 144 of file scanner.c.

144  {
145  if (valid_symbols[SPEC_SEP] && lexer->lookahead == ':') {
146  lexer->advance(lexer, false);
147  lexer->result_symbol = SPEC_SEP;
148  return true;
149  } else if (valid_symbols[CONCAT] && is_concat(lexer->lookahead)) {
150  lexer->result_symbol = CONCAT;
151  return true;
152  } else if (valid_symbols[CONCAT_PF_DOT] && is_concat_pf_dot(lexer->lookahead)) {
153  lexer->result_symbol = CONCAT_PF_DOT;
154  return true;
155  } else if (valid_symbols[EQ_SEP_CONCAT] && is_concat_eq_sep(lexer->lookahead)) {
156  lexer->result_symbol = EQ_SEP_CONCAT;
157  return true;
158  }
159  if (valid_symbols[CMD_IDENTIFIER] || valid_symbols[HELP_STMT]) {
160  char res[CMD_IDENTIFIER_MAX_LENGTH + 1];
161  int i_res = 0;
162 
163  while (iswspace (lexer->lookahead)) {
164  lexer->advance (lexer, true);
165  }
166 
167  if (!is_start_of_command (lexer->lookahead)) {
168  return false;
169  }
170  res[i_res++] = lexer->lookahead;
171  lexer->advance (lexer, false);
172  while (lexer->lookahead && i_res < CMD_IDENTIFIER_MAX_LENGTH && is_mid_command (res, i_res, lexer->lookahead)) {
173  if (lexer->lookahead == ESCAPE_CHAR) {
174  // ignore escape char and just get the next one, whatever it is
175  lexer->advance (lexer, false);
176  }
177  res[i_res++] = lexer->lookahead;
178  lexer->advance (lexer, false);
179  }
180  res[i_res] = '\0';
181  if (is_comment (res)) {
182  return false;
183  }
184  // ?? is not considered an help command, just a regular one
185  if ((res[i_res - 1] == '?' && strcmp (res, "??") != 0) ||
186  (i_res > 2 && is_recursive_help (res[i_res - 2], res[i_res - 1])) ||
187  (i_res > 3 && is_recursive_help_json (res[i_res - 3], res[i_res - 2], res[i_res - 1]))) {
188  if (i_res == 1) {
189  return false;
190  }
191  lexer->result_symbol = HELP_STMT;
192  } else {
193  if ((is_special_start(res[0]) && strcmp(res, "R=!")) || is_pf_cmd(res) || is_env_cmd(res) || is_at_cmd(res) || !valid_symbols[CMD_IDENTIFIER]) {
194  return false;
195  }
196  lexer->result_symbol = CMD_IDENTIFIER;
197  }
198  return true;
199  }
200  if (valid_symbols[FILE_DESCRIPTOR]) {
201  return scan_number (lexer, valid_symbols);
202  }
203  return false;
204 }
static bool scan_number(TSLexer *lexer, const bool *valid_symbols)
Definition: scanner.c:114
#define CMD_IDENTIFIER_MAX_LENGTH
Definition: scanner.c:10
static bool is_recursive_help_json(const int32_t trd_last_ch, const int32_t snd_last_ch, const int32_t last_ch)
Definition: scanner.c:110
static bool is_concat(const int32_t ch)
Definition: scanner.c:92
static bool is_concat_eq_sep(const int32_t ch)
Definition: scanner.c:102
static bool is_recursive_help(const int32_t before_last_ch, const int32_t last_ch)
Definition: scanner.c:106
static bool is_at_cmd(const char *s)
Definition: scanner.c:45
static bool is_mid_command(const char *res, int len, const int32_t ch)
Definition: scanner.c:73
static bool is_pf_cmd(const char *s)
Definition: scanner.c:37
static bool is_env_cmd(const char *s)
Definition: scanner.c:41
@ EQ_SEP_CONCAT
Definition: scanner.c:17
@ HELP_STMT
Definition: scanner.c:15
@ CMD_IDENTIFIER
Definition: scanner.c:14
@ FILE_DESCRIPTOR
Definition: scanner.c:16
@ SPEC_SEP
Definition: scanner.c:20
@ CONCAT
Definition: scanner.c:18
@ CONCAT_PF_DOT
Definition: scanner.c:19
static bool is_comment(const char *s)
Definition: scanner.c:53
#define ESCAPE_CHAR
Definition: scanner.c:11
static bool is_special_start(const int32_t ch)
Definition: scanner.c:61
static bool is_concat_pf_dot(const int32_t ch)
Definition: scanner.c:98
static bool is_start_of_command(const int32_t ch)
Definition: scanner.c:67
void(* advance)(TSLexer *, bool)
Definition: parser.h:46
int32_t lookahead
Definition: parser.h:44
TSSymbol result_symbol
Definition: parser.h:45

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().

◆ tree_sitter_rzcmd_external_scanner_serialize()

unsigned tree_sitter_rzcmd_external_scanner_serialize ( void *  payload,
char *  buffer 
)

Definition at line 30 of file scanner.c.

30  {
31  return 0;
32 }

Referenced by tree_sitter_rzcmd().

◆ ts_lex()

static bool ts_lex ( TSLexer lexer,
TSStateId  state 
)
static

Definition at line 2185 of file parser.c.

2185  {
2186  START_LEXER();
2187  eof = lexer->eof(lexer);
2188  switch (state) {
2189  case 0:
2190  if (eof) ADVANCE(73);
2191  if (lookahead == '\n') ADVANCE(216);
2192  if (lookahead == '\r') ADVANCE(217);
2193  if (lookahead == '"') ADVANCE(74);
2194  if (lookahead == '#') ADVANCE(214);
2195  if (lookahead == '$') ADVANCE(159);
2196  if (lookahead == '%') ADVANCE(166);
2197  if (lookahead == '\'') ADVANCE(203);
2198  if (lookahead == '(') ADVANCE(160);
2199  if (lookahead == ')') ADVANCE(119);
2200  if (lookahead == '*') ADVANCE(171);
2201  if (lookahead == ',') ADVANCE(179);
2202  if (lookahead == '.') ADVANCE(134);
2203  if (lookahead == '/') ADVANCE(133);
2204  if (lookahead == ':') ADVANCE(97);
2205  if (lookahead == ';') ADVANCE(174);
2206  if (lookahead == '=') ADVANCE(149);
2207  if (lookahead == '>') ADVANCE(175);
2208  if (lookahead == '?') ADVANCE(170);
2209  if (lookahead == '@') ADVANCE(1);
2210  if (lookahead == 'H') ADVANCE(181);
2211  if (lookahead == '\\') ADVANCE(202);
2212  if (lookahead == '`') ADVANCE(210);
2213  if (lookahead == '|') ADVANCE(88);
2214  if (lookahead == '~') ADVANCE(77);
2215  if (lookahead == '\t' ||
2216  lookahead == ' ') SKIP(0)
2217  if (lookahead != 0) ADVANCE(180);
2218  END_STATE();
2219  case 1:
2220  if (lookahead == ' ') ADVANCE(116);
2221  if (lookahead == '!') ADVANCE(117);
2222  if (lookahead == '(') ADVANCE(118);
2223  if (lookahead == '@') ADVANCE(93);
2224  if (lookahead == 'B') ADVANCE(17);
2225  if (lookahead == 'F') ADVANCE(18);
2226  if (lookahead == 'a') ADVANCE(19);
2227  if (lookahead == 'b') ADVANCE(20);
2228  if (lookahead == 'e') ADVANCE(21);
2229  if (lookahead == 'f') ADVANCE(22);
2230  if (lookahead == 'i') ADVANCE(23);
2231  if (lookahead == 'k') ADVANCE(24);
2232  if (lookahead == 'o') ADVANCE(25);
2233  if (lookahead == 'r') ADVANCE(26);
2234  if (lookahead == 's') ADVANCE(27);
2235  if (lookahead == 'v') ADVANCE(28);
2236  if (lookahead == 'x') ADVANCE(29);
2237  END_STATE();
2238  case 2:
2239  if (lookahead == '"') ADVANCE(74);
2240  if (lookahead == '#') ADVANCE(214);
2241  if (lookahead == '$') ADVANCE(15);
2242  if (lookahead == '%') ADVANCE(182);
2243  if (lookahead == '\'') ADVANCE(203);
2244  if (lookahead == '`') ADVANCE(210);
2245  if (lookahead == '\t' ||
2246  lookahead == ' ') SKIP(2)
2248  END_STATE();
2249  case 3:
2250  if (lookahead == '"') ADVANCE(74);
2251  if (lookahead == '#') ADVANCE(196);
2252  if (lookahead == '$') ADVANCE(200);
2253  if (lookahead == '\\') ADVANCE(202);
2254  if (lookahead == '`') ADVANCE(210);
2255  if (lookahead == '\t' ||
2256  lookahead == ' ') ADVANCE(197);
2257  if (lookahead != 0 &&
2258  lookahead != '\n') ADVANCE(198);
2259  END_STATE();
2260  case 4:
2261  if (lookahead == '#') ADVANCE(214);
2262  if (lookahead == '$') ADVANCE(86);
2263  if (lookahead == '\\') ADVANCE(84);
2264  if (lookahead == '`') ADVANCE(210);
2265  if (lookahead == '\t' ||
2266  lookahead == ' ') ADVANCE(80);
2267  if (lookahead != 0 &&
2268  lookahead != '\n' &&
2269  lookahead != '\r' &&
2270  lookahead != '(' &&
2271  lookahead != ')' &&
2272  lookahead != ';' &&
2273  lookahead != '>' &&
2274  lookahead != '@' &&
2275  lookahead != '|') ADVANCE(82);
2276  END_STATE();
2277  case 5:
2278  if (lookahead == '#') ADVANCE(214);
2279  if (lookahead == '$') ADVANCE(158);
2280  if (lookahead == '\\') ADVANCE(62);
2281  if (lookahead == '\t' ||
2282  lookahead == ' ') SKIP(5)
2284  END_STATE();
2285  case 6:
2286  if (lookahead == '#') ADVANCE(214);
2287  if (lookahead == '$') ADVANCE(156);
2288  if (lookahead == '(') ADVANCE(160);
2289  if (lookahead == ')') ADVANCE(119);
2290  if (lookahead == '\\') ADVANCE(60);
2291  if (lookahead == '`') ADVANCE(210);
2292  if (lookahead == '\t' ||
2293  lookahead == ' ') SKIP(6)
2295  END_STATE();
2296  case 7:
2297  if (lookahead == '#') ADVANCE(214);
2298  if (lookahead == '$') ADVANCE(157);
2299  if (lookahead == '.') ADVANCE(134);
2300  if (lookahead == '\\') ADVANCE(61);
2301  if (lookahead == '`') ADVANCE(210);
2302  if (lookahead == '\t' ||
2303  lookahead == ' ') SKIP(7)
2305  END_STATE();
2306  case 8:
2307  if (lookahead == '#') ADVANCE(214);
2308  if (lookahead == '\t' ||
2309  lookahead == ' ') SKIP(8)
2311  END_STATE();
2312  case 9:
2313  if (lookahead == '#') ADVANCE(204);
2314  if (lookahead == '\'') ADVANCE(203);
2315  if (lookahead == '\\') ADVANCE(208);
2316  if (lookahead == '\t' ||
2317  lookahead == ' ') ADVANCE(205);
2318  if (lookahead != 0 &&
2319  lookahead != '\n') ADVANCE(206);
2320  END_STATE();
2321  case 10:
2322  if (lookahead == '#') ADVANCE(213);
2323  if (lookahead == '\\') ADVANCE(63);
2324  if (lookahead == '\t' ||
2325  lookahead == ' ') ADVANCE(75);
2326  if (lookahead != 0 &&
2327  lookahead != '"') ADVANCE(76);
2328  END_STATE();
2329  case 11:
2330  if (lookahead == '$') ADVANCE(191);
2331  if (lookahead == '{') ADVANCE(54);
2333  END_STATE();
2334  case 12:
2335  if (lookahead == '$') ADVANCE(162);
2336  if (lookahead == '{') ADVANCE(55);
2338  END_STATE();
2339  case 13:
2340  if (lookahead == '$') ADVANCE(152);
2341  if (lookahead == '{') ADVANCE(57);
2343  END_STATE();
2344  case 14:
2345  if (lookahead == '$') ADVANCE(193);
2346  if (lookahead == '{') ADVANCE(58);
2348  END_STATE();
2349  case 15:
2350  if (lookahead == '(') ADVANCE(209);
2351  if (lookahead == '{') ADVANCE(56);
2352  if (lookahead != 0) ADVANCE(186);
2353  END_STATE();
2354  case 16:
2355  if (lookahead == '.') ADVANCE(146);
2356  END_STATE();
2357  case 17:
2358  if (lookahead == ':') ADVANCE(122);
2359  END_STATE();
2360  case 18:
2361  if (lookahead == ':') ADVANCE(124);
2362  END_STATE();
2363  case 19:
2364  if (lookahead == ':') ADVANCE(120);
2365  END_STATE();
2366  case 20:
2367  if (lookahead == ':') ADVANCE(121);
2368  END_STATE();
2369  case 21:
2370  if (lookahead == ':') ADVANCE(123);
2371  END_STATE();
2372  case 22:
2373  if (lookahead == ':') ADVANCE(129);
2374  END_STATE();
2375  case 23:
2376  if (lookahead == ':') ADVANCE(125);
2377  END_STATE();
2378  case 24:
2379  if (lookahead == ':') ADVANCE(126);
2380  END_STATE();
2381  case 25:
2382  if (lookahead == ':') ADVANCE(127);
2383  END_STATE();
2384  case 26:
2385  if (lookahead == ':') ADVANCE(128);
2386  END_STATE();
2387  case 27:
2388  if (lookahead == ':') ADVANCE(130);
2389  END_STATE();
2390  case 28:
2391  if (lookahead == ':') ADVANCE(131);
2392  END_STATE();
2393  case 29:
2394  if (lookahead == ':') ADVANCE(132);
2395  END_STATE();
2396  case 30:
2397  if (lookahead == ':') ADVANCE(94);
2398  END_STATE();
2399  case 31:
2400  if (lookahead == ':') ADVANCE(115);
2401  END_STATE();
2402  case 32:
2403  if (lookahead == ':') ADVANCE(95);
2404  END_STATE();
2405  case 33:
2406  if (lookahead == '=') ADVANCE(92);
2407  if (lookahead == 'c') ADVANCE(32);
2408  END_STATE();
2409  case 34:
2410  if (lookahead == '>') ADVANCE(177);
2411  END_STATE();
2412  case 35:
2413  if (lookahead == 'b') ADVANCE(40);
2414  if (lookahead == 'm') ADVANCE(113);
2415  END_STATE();
2416  case 36:
2417  if (lookahead == 'f') ADVANCE(144);
2418  END_STATE();
2419  case 37:
2420  if (lookahead == 'f') ADVANCE(147);
2421  END_STATE();
2422  case 38:
2423  if (lookahead == 'm') ADVANCE(112);
2424  END_STATE();
2425  case 39:
2426  if (lookahead == 'n') ADVANCE(41);
2427  END_STATE();
2428  case 40:
2429  if (lookahead == 't') ADVANCE(98);
2430  END_STATE();
2431  case 41:
2432  if (lookahead == 'v') ADVANCE(167);
2433  END_STATE();
2434  case 42:
2435  if (lookahead == '{') ADVANCE(56);
2436  if (lookahead != 0 &&
2437  lookahead != '(') ADVANCE(186);
2438  END_STATE();
2439  case 43:
2440  if (lookahead == '}') ADVANCE(188);
2441  if (lookahead != 0 &&
2442  lookahead != '\n' &&
2443  lookahead != '\r' &&
2444  lookahead != ' ' &&
2445  lookahead != '$') ADVANCE(43);
2446  END_STATE();
2447  case 44:
2448  if (lookahead == '}') ADVANCE(164);
2449  if (lookahead != 0 &&
2450  lookahead != '\n' &&
2451  lookahead != '\r' &&
2452  lookahead != ' ' &&
2453  lookahead != '$') ADVANCE(44);
2454  END_STATE();
2455  case 45:
2456  if (lookahead == '}') ADVANCE(186);
2457  if (lookahead != 0 &&
2458  lookahead != '\n' &&
2459  lookahead != '\r' &&
2460  lookahead != ' ' &&
2461  lookahead != '$') ADVANCE(45);
2462  END_STATE();
2463  case 46:
2464  if (lookahead == '}') ADVANCE(153);
2465  if (lookahead != 0 &&
2466  lookahead != '\n' &&
2467  lookahead != '\r' &&
2468  lookahead != ' ' &&
2469  lookahead != '$') ADVANCE(46);
2470  END_STATE();
2471  case 47:
2472  if (lookahead == '}') ADVANCE(194);
2473  if (lookahead != 0 &&
2474  lookahead != '\n' &&
2475  lookahead != '\r' &&
2476  lookahead != ' ' &&
2477  lookahead != '$') ADVANCE(47);
2478  END_STATE();
2479  case 48:
2480  if (lookahead == '\r' ||
2481  lookahead == ' ' ||
2482  lookahead == '$' ||
2483  lookahead == '}') ADVANCE(188);
2484  if (lookahead != 0 &&
2485  lookahead != '\n') ADVANCE(189);
2486  END_STATE();
2487  case 49:
2488  if (lookahead == '\r' ||
2489  lookahead == ' ' ||
2490  lookahead == '$' ||
2491  lookahead == '}') ADVANCE(164);
2492  if (lookahead != 0 &&
2493  lookahead != '\n') ADVANCE(165);
2494  END_STATE();
2495  case 50:
2496  if (lookahead == '\r' ||
2497  lookahead == ' ' ||
2498  lookahead == '$' ||
2499  lookahead == '}') ADVANCE(153);
2500  if (lookahead != 0 &&
2501  lookahead != '\n') ADVANCE(154);
2502  END_STATE();
2503  case 51:
2504  if (lookahead == '\r' ||
2505  lookahead == ' ' ||
2506  lookahead == '$' ||
2507  lookahead == '}') ADVANCE(194);
2508  if (lookahead != 0 &&
2509  lookahead != '\n') ADVANCE(195);
2510  END_STATE();
2511  case 52:
2512  if (('0' <= lookahead && lookahead <= '9')) ADVANCE(212);
2513  END_STATE();
2514  case 53:
2516  END_STATE();
2517  case 54:
2518  if (lookahead != 0 &&
2519  lookahead != '\n' &&
2520  lookahead != '\r' &&
2521  lookahead != ' ' &&
2522  lookahead != '$' &&
2523  lookahead != '}') ADVANCE(43);
2524  END_STATE();
2525  case 55:
2526  if (lookahead != 0 &&
2527  lookahead != '\n' &&
2528  lookahead != '\r' &&
2529  lookahead != ' ' &&
2530  lookahead != '$' &&
2531  lookahead != '}') ADVANCE(44);
2532  END_STATE();
2533  case 56:
2534  if (lookahead != 0 &&
2535  lookahead != '\n' &&
2536  lookahead != '\r' &&
2537  lookahead != ' ' &&
2538  lookahead != '$' &&
2539  lookahead != '}') ADVANCE(45);
2540  END_STATE();
2541  case 57:
2542  if (lookahead != 0 &&
2543  lookahead != '\n' &&
2544  lookahead != '\r' &&
2545  lookahead != ' ' &&
2546  lookahead != '$' &&
2547  lookahead != '}') ADVANCE(46);
2548  END_STATE();
2549  case 58:
2550  if (lookahead != 0 &&
2551  lookahead != '\n' &&
2552  lookahead != '\r' &&
2553  lookahead != ' ' &&
2554  lookahead != '$' &&
2555  lookahead != '}') ADVANCE(47);
2556  END_STATE();
2557  case 59:
2558  if (lookahead != 0 &&
2559  lookahead != '\n') ADVANCE(188);
2560  END_STATE();
2561  case 60:
2562  if (lookahead != 0 &&
2563  lookahead != '\n') ADVANCE(164);
2564  END_STATE();
2565  case 61:
2566  if (lookahead != 0 &&
2567  lookahead != '\n') ADVANCE(153);
2568  END_STATE();
2569  case 62:
2570  if (lookahead != 0 &&
2571  lookahead != '\n') ADVANCE(194);
2572  END_STATE();
2573  case 63:
2574  if (lookahead != 0) ADVANCE(76);
2575  END_STATE();
2576  case 64:
2577  if (eof) ADVANCE(73);
2578  if (lookahead == '\t') SKIP(64)
2579  if (lookahead == '\n') ADVANCE(216);
2580  if (lookahead == '\r') ADVANCE(217);
2581  if (lookahead == ' ') ADVANCE(138);
2582  if (lookahead == '#') ADVANCE(214);
2583  if (lookahead == ')') ADVANCE(119);
2584  if (lookahead == ';') ADVANCE(174);
2585  if (lookahead == '>') ADVANCE(175);
2586  if (lookahead == '@') ADVANCE(1);
2587  if (lookahead == 'H') ADVANCE(34);
2588  if (lookahead == '`') ADVANCE(210);
2589  if (lookahead == '|') ADVANCE(88);
2590  if (lookahead == '~') ADVANCE(77);
2591  END_STATE();
2592  case 65:
2593  if (eof) ADVANCE(73);
2594  if (lookahead == '\n') ADVANCE(216);
2595  if (lookahead == '\r') ADVANCE(217);
2596  if (lookahead == '!') ADVANCE(169);
2597  if (lookahead == '"') ADVANCE(74);
2598  if (lookahead == '#') ADVANCE(214);
2599  if (lookahead == '%') ADVANCE(166);
2600  if (lookahead == '(') ADVANCE(173);
2601  if (lookahead == ')') ADVANCE(119);
2602  if (lookahead == '*') ADVANCE(171);
2603  if (lookahead == '.') ADVANCE(135);
2604  if (lookahead == '/') ADVANCE(133);
2605  if (lookahead == '0') ADVANCE(52);
2606  if (lookahead == ':') ADVANCE(97);
2607  if (lookahead == ';') ADVANCE(174);
2608  if (lookahead == '=') ADVANCE(149);
2609  if (lookahead == '>') ADVANCE(175);
2610  if (lookahead == '?') ADVANCE(170);
2611  if (lookahead == '@') ADVANCE(1);
2612  if (lookahead == 'C') ADVANCE(36);
2613  if (lookahead == 'H') ADVANCE(34);
2614  if (lookahead == '`') ADVANCE(210);
2615  if (lookahead == 'e') ADVANCE(39);
2616  if (lookahead == 'p') ADVANCE(37);
2617  if (lookahead == '|') ADVANCE(88);
2618  if (lookahead == '~') ADVANCE(77);
2619  if (lookahead == '\t' ||
2620  lookahead == ' ') SKIP(65)
2621  if (('1' <= lookahead && lookahead <= '9')) ADVANCE(211);
2622  END_STATE();
2623  case 66:
2624  if (eof) ADVANCE(73);
2625  if (lookahead == '\n') ADVANCE(216);
2626  if (lookahead == '\r') ADVANCE(217);
2627  if (lookahead == '"') ADVANCE(74);
2628  if (lookahead == '#') ADVANCE(214);
2629  if (lookahead == '$') ADVANCE(155);
2630  if (lookahead == '\'') ADVANCE(203);
2631  if (lookahead == '(') ADVANCE(160);
2632  if (lookahead == ')') ADVANCE(119);
2633  if (lookahead == ',') ADVANCE(179);
2634  if (lookahead == ';') ADVANCE(174);
2635  if (lookahead == '>') ADVANCE(175);
2636  if (lookahead == '@') ADVANCE(1);
2637  if (lookahead == 'H') ADVANCE(187);
2638  if (lookahead == '\\') ADVANCE(59);
2639  if (lookahead == '`') ADVANCE(210);
2640  if (lookahead == '|') ADVANCE(88);
2641  if (lookahead == '~') ADVANCE(77);
2642  if (lookahead == '\t' ||
2643  lookahead == ' ') SKIP(66)
2644  if (lookahead != 0) ADVANCE(188);
2645  END_STATE();
2646  case 67:
2647  if (eof) ADVANCE(73);
2648  if (lookahead == '\n') ADVANCE(216);
2649  if (lookahead == '\r') ADVANCE(217);
2650  if (lookahead == '"') ADVANCE(74);
2651  if (lookahead == '#') ADVANCE(214);
2652  if (lookahead == '$') ADVANCE(155);
2653  if (lookahead == '\'') ADVANCE(203);
2654  if (lookahead == '(') ADVANCE(160);
2655  if (lookahead == ')') ADVANCE(119);
2656  if (lookahead == ',') ADVANCE(179);
2657  if (lookahead == ';') ADVANCE(174);
2658  if (lookahead == '\\') ADVANCE(59);
2659  if (lookahead == '`') ADVANCE(210);
2660  if (lookahead == '\t' ||
2661  lookahead == ' ') SKIP(67)
2662  if (lookahead != 0 &&
2663  lookahead != '>' &&
2664  lookahead != '@' &&
2665  lookahead != '|' &&
2666  lookahead != '~') ADVANCE(188);
2667  END_STATE();
2668  case 68:
2669  if (eof) ADVANCE(73);
2670  if (lookahead == '\n') ADVANCE(216);
2671  if (lookahead == '\r') ADVANCE(217);
2672  if (lookahead == '"') ADVANCE(74);
2673  if (lookahead == '#') ADVANCE(214);
2674  if (lookahead == '$') ADVANCE(15);
2675  if (lookahead == '%') ADVANCE(182);
2676  if (lookahead == '\'') ADVANCE(203);
2677  if (lookahead == ')') ADVANCE(119);
2678  if (lookahead == ';') ADVANCE(174);
2679  if (lookahead == '>') ADVANCE(175);
2680  if (lookahead == '@') ADVANCE(1);
2681  if (lookahead == 'H') ADVANCE(183);
2682  if (lookahead == '`') ADVANCE(210);
2683  if (lookahead == '|') ADVANCE(88);
2684  if (lookahead == '~') ADVANCE(77);
2685  if (lookahead == '\t' ||
2686  lookahead == ' ') SKIP(68)
2687  if (lookahead != 0 &&
2688  lookahead != '(' &&
2689  lookahead != ',' &&
2690  lookahead != '=' &&
2691  lookahead != '\\') ADVANCE(186);
2692  END_STATE();
2693  case 69:
2694  if (eof) ADVANCE(73);
2695  if (lookahead == '\n') ADVANCE(216);
2696  if (lookahead == '\r') ADVANCE(217);
2697  if (lookahead == '#') ADVANCE(214);
2698  if (lookahead == '$') ADVANCE(86);
2699  if (lookahead == ')') ADVANCE(119);
2700  if (lookahead == ';') ADVANCE(174);
2701  if (lookahead == '>') ADVANCE(175);
2702  if (lookahead == '@') ADVANCE(1);
2703  if (lookahead == 'H') ADVANCE(81);
2704  if (lookahead == '\\') ADVANCE(84);
2705  if (lookahead == '`') ADVANCE(210);
2706  if (lookahead == '|') ADVANCE(88);
2707  if (lookahead == '~') ADVANCE(78);
2708  if (lookahead == '\t' ||
2709  lookahead == ' ') ADVANCE(79);
2710  if (lookahead != 0 &&
2711  lookahead != '(') ADVANCE(82);
2712  END_STATE();
2713  case 70:
2714  if (eof) ADVANCE(73);
2715  if (lookahead == '\n') ADVANCE(216);
2716  if (lookahead == '\r') ADVANCE(217);
2717  if (lookahead == '#') ADVANCE(214);
2718  if (lookahead == '$') ADVANCE(156);
2719  if (lookahead == '(') ADVANCE(160);
2720  if (lookahead == ')') ADVANCE(119);
2721  if (lookahead == ';') ADVANCE(174);
2722  if (lookahead == '=') ADVANCE(150);
2723  if (lookahead == '>') ADVANCE(175);
2724  if (lookahead == '@') ADVANCE(1);
2725  if (lookahead == 'H') ADVANCE(163);
2726  if (lookahead == '\\') ADVANCE(60);
2727  if (lookahead == '`') ADVANCE(210);
2728  if (lookahead == '|') ADVANCE(88);
2729  if (lookahead == '~') ADVANCE(77);
2730  if (lookahead == '\t' ||
2731  lookahead == ' ') SKIP(70)
2732  if (lookahead != 0 &&
2733  lookahead != '"' &&
2734  lookahead != '\'') ADVANCE(164);
2735  END_STATE();
2736  case 71:
2737  if (eof) ADVANCE(73);
2738  if (lookahead == '\n') ADVANCE(216);
2739  if (lookahead == '\r') ADVANCE(217);
2740  if (lookahead == '#') ADVANCE(214);
2741  if (lookahead == '$') ADVANCE(156);
2742  if (lookahead == '(') ADVANCE(160);
2743  if (lookahead == ')') ADVANCE(119);
2744  if (lookahead == ';') ADVANCE(174);
2745  if (lookahead == '>') ADVANCE(175);
2746  if (lookahead == '@') ADVANCE(1);
2747  if (lookahead == 'H') ADVANCE(163);
2748  if (lookahead == '\\') ADVANCE(60);
2749  if (lookahead == '`') ADVANCE(210);
2750  if (lookahead == '|') ADVANCE(88);
2751  if (lookahead == '~') ADVANCE(77);
2752  if (lookahead == '\t' ||
2753  lookahead == ' ') SKIP(71)
2754  if (lookahead != 0 &&
2755  lookahead != '"' &&
2756  lookahead != '\'') ADVANCE(164);
2757  END_STATE();
2758  case 72:
2759  if (eof) ADVANCE(73);
2760  if (lookahead == '\n') ADVANCE(216);
2761  if (lookahead == '\r') ADVANCE(217);
2762  if (lookahead == '#') ADVANCE(214);
2763  if (lookahead == ')') ADVANCE(119);
2764  if (lookahead == ',') ADVANCE(179);
2765  if (lookahead == ';') ADVANCE(174);
2766  if (lookahead == '>') ADVANCE(175);
2767  if (lookahead == '@') ADVANCE(1);
2768  if (lookahead == 'H') ADVANCE(181);
2769  if (lookahead == '`') ADVANCE(210);
2770  if (lookahead == '|') ADVANCE(88);
2771  if (lookahead == '~') ADVANCE(77);
2772  if (lookahead == '\t' ||
2773  lookahead == ' ') SKIP(72)
2774  if (lookahead != 0 &&
2775  (lookahead < '"' || '$' < lookahead) &&
2776  lookahead != '\'' &&
2777  lookahead != '(' &&
2778  lookahead != '\\') ADVANCE(180);
2779  END_STATE();
2780  case 73:
2782  END_STATE();
2783  case 74:
2785  END_STATE();
2786  case 75:
2788  if (lookahead == '#') ADVANCE(213);
2789  if (lookahead == '\\') ADVANCE(63);
2790  if (lookahead == '\t' ||
2791  lookahead == ' ') ADVANCE(75);
2792  if (lookahead != 0 &&
2793  lookahead != '"') ADVANCE(76);
2794  END_STATE();
2795  case 76:
2797  if (lookahead == '\\') ADVANCE(63);
2798  if (lookahead != 0 &&
2799  lookahead != '"') ADVANCE(76);
2800  END_STATE();
2801  case 77:
2803  END_STATE();
2804  case 78:
2806  if (lookahead == '$') ADVANCE(53);
2807  if (lookahead == '\\') ADVANCE(84);
2809  END_STATE();
2810  case 79:
2812  if (lookahead == '$') ADVANCE(86);
2813  if (lookahead == 'H') ADVANCE(81);
2814  if (lookahead == '\\') ADVANCE(84);
2815  if (lookahead == '~') ADVANCE(78);
2816  if (lookahead == '\t' ||
2817  lookahead == ' ') ADVANCE(79);
2819  END_STATE();
2820  case 80:
2822  if (lookahead == '$') ADVANCE(86);
2823  if (lookahead == '\\') ADVANCE(84);
2824  if (lookahead == '\t' ||
2825  lookahead == ' ') ADVANCE(80);
2827  END_STATE();
2828  case 81:
2830  if (lookahead == '$') ADVANCE(53);
2831  if (lookahead == '>') ADVANCE(177);
2832  if (lookahead == '\\') ADVANCE(84);
2834  END_STATE();
2835  case 82:
2837  if (lookahead == '$') ADVANCE(53);
2838  if (lookahead == '\\') ADVANCE(84);
2840  END_STATE();
2841  case 83:
2843  if (lookahead == '$') ADVANCE(83);
2844  if (lookahead == '\\') ADVANCE(84);
2845  if (lookahead == ')' ||
2846  lookahead == '@') ADVANCE(82);
2848  END_STATE();
2849  case 84:
2851  if (lookahead == '$') ADVANCE(83);
2852  if (lookahead == '\\') ADVANCE(84);
2853  if (lookahead == '\r' ||
2854  lookahead == '#' ||
2855  lookahead == '(' ||
2856  lookahead == ')' ||
2857  lookahead == ';' ||
2858  lookahead == '>' ||
2859  lookahead == '@' ||
2860  lookahead == '`' ||
2861  lookahead == '|') ADVANCE(82);
2862  if (lookahead != 0 &&
2863  lookahead != '\n') ADVANCE(82);
2864  END_STATE();
2865  case 85:
2867  if (lookahead == '$') ADVANCE(87);
2868  if (lookahead == '\\') ADVANCE(84);
2870  END_STATE();
2871  case 86:
2873  if (lookahead == '$') ADVANCE(85);
2874  if (lookahead == '(') ADVANCE(209);
2875  if (lookahead != 0 &&
2876  lookahead != '\n' &&
2877  lookahead != '\r' &&
2878  lookahead != '#' &&
2879  lookahead != ';' &&
2880  lookahead != '>' &&
2881  lookahead != '`' &&
2882  lookahead != '|') ADVANCE(82);
2883  END_STATE();
2884  case 87:
2886  if (lookahead == '$') ADVANCE(85);
2888  END_STATE();
2889  case 88:
2891  if (lookahead == '.') ADVANCE(141);
2892  if (lookahead == 'H') ADVANCE(89);
2893  END_STATE();
2894  case 89:
2896  END_STATE();
2897  case 90:
2899  END_STATE();
2900  case 91:
2902  END_STATE();
2903  case 92:
2905  END_STATE();
2906  case 93:
2908  if (lookahead == '.') ADVANCE(90);
2909  if (lookahead == '=') ADVANCE(91);
2910  if (lookahead == '@') ADVANCE(33);
2911  if (lookahead == 'C') ADVANCE(96);
2912  if (lookahead == 'F') ADVANCE(111);
2913  if (lookahead == 'b') ADVANCE(103);
2914  if (lookahead == 'c') ADVANCE(30);
2915  if (lookahead == 'd') ADVANCE(35);
2916  if (lookahead == 'f') ADVANCE(110);
2917  if (lookahead == 'i') ADVANCE(104);
2918  if (lookahead == 'o') ADVANCE(38);
2919  if (lookahead == 'r') ADVANCE(114);
2920  if (lookahead == 's') ADVANCE(31);
2921  if (lookahead == 't') ADVANCE(102);
2922  END_STATE();
2923  case 94:
2925  END_STATE();
2926  case 95:
2928  END_STATE();
2929  case 96:
2931  END_STATE();
2932  case 97:
2934  END_STATE();
2935  case 98:
2937  if (lookahead == 'a') ADVANCE(99);
2938  if (lookahead == 'b') ADVANCE(100);
2939  if (lookahead == 's') ADVANCE(101);
2940  END_STATE();
2941  case 99:
2943  END_STATE();
2944  case 100:
2946  END_STATE();
2947  case 101:
2949  END_STATE();
2950  case 102:
2952  END_STATE();
2953  case 103:
2955  END_STATE();
2956  case 104:
2958  if (lookahead == 'S') ADVANCE(106);
2959  if (lookahead == 'i') ADVANCE(105);
2960  if (lookahead == 's') ADVANCE(108);
2961  if (lookahead == 'z') ADVANCE(109);
2962  END_STATE();
2963  case 105:
2965  END_STATE();
2966  case 106:
2968  if (lookahead == 'S') ADVANCE(107);
2969  END_STATE();
2970  case 107:
2972  END_STATE();
2973  case 108:
2975  END_STATE();
2976  case 109:
2978  END_STATE();
2979  case 110:
2981  END_STATE();
2982  case 111:
2984  END_STATE();
2985  case 112:
2987  END_STATE();
2988  case 113:
2990  END_STATE();
2991  case 114:
2993  END_STATE();
2994  case 115:
2996  END_STATE();
2997  case 116:
2999  END_STATE();
3000  case 117:
3002  END_STATE();
3003  case 118:
3005  END_STATE();
3006  case 119:
3008  END_STATE();
3009  case 120:
3011  END_STATE();
3012  case 121:
3014  END_STATE();
3015  case 122:
3017  END_STATE();
3018  case 123:
3020  END_STATE();
3021  case 124:
3023  END_STATE();
3024  case 125:
3026  END_STATE();
3027  case 126:
3029  END_STATE();
3030  case 127:
3032  END_STATE();
3033  case 128:
3035  END_STATE();
3036  case 129:
3038  END_STATE();
3039  case 130:
3041  END_STATE();
3042  case 131:
3044  END_STATE();
3045  case 132:
3047  END_STATE();
3048  case 133:
3050  if (lookahead == '!' ||
3051  lookahead == '*' ||
3052  lookahead == '+' ||
3053  ('/' <= lookahead && lookahead <= '9') ||
3054  ('A' <= lookahead && lookahead <= 'Z') ||
3055  ('a' <= lookahead && lookahead <= 'z')) ADVANCE(133);
3056  END_STATE();
3057  case 134:
3059  END_STATE();
3060  case 135:
3062  if (lookahead == ' ') ADVANCE(139);
3063  if (lookahead == '(') ADVANCE(140);
3064  if (lookahead == '.') ADVANCE(136);
3065  if (lookahead == '/') ADVANCE(142);
3066  if (lookahead == '*' ||
3067  lookahead == '-' ||
3068  lookahead == ':') ADVANCE(137);
3069  END_STATE();
3070  case 136:
3072  if (lookahead == '(') ADVANCE(140);
3073  if (lookahead == '.') ADVANCE(168);
3074  if (lookahead == '*' ||
3075  lookahead == '-' ||
3076  lookahead == ':') ADVANCE(137);
3077  END_STATE();
3078  case 137:
3080  if (lookahead == '*' ||
3081  lookahead == '-' ||
3082  lookahead == '.' ||
3083  lookahead == ':') ADVANCE(137);
3084  END_STATE();
3085  case 138:
3087  if (lookahead == ' ') ADVANCE(138);
3088  END_STATE();
3089  case 139:
3091  if (lookahead == ' ') ADVANCE(139);
3092  END_STATE();
3093  case 140:
3095  END_STATE();
3096  case 141:
3098  END_STATE();
3099  case 142:
3101  END_STATE();
3102  case 143:
3104  END_STATE();
3105  case 144:
3107  END_STATE();
3108  case 145:
3110  END_STATE();
3111  case 146:
3113  END_STATE();
3114  case 147:
3116  if (lookahead == '.') ADVANCE(145);
3117  if (lookahead == 'o') ADVANCE(143);
3118  if (lookahead == 'v') ADVANCE(16);
3119  if (lookahead == '*' ||
3120  lookahead == 'c' ||
3121  lookahead == 'j' ||
3122  lookahead == 'q' ||
3123  lookahead == 's') ADVANCE(148);
3124  END_STATE();
3125  case 148:
3127  if (lookahead == '.') ADVANCE(146);
3128  END_STATE();
3129  case 149:
3131  END_STATE();
3132  case 150:
3134  if (lookahead == '$') ADVANCE(12);
3135  if (lookahead == '\\') ADVANCE(60);
3137  END_STATE();
3138  case 151:
3140  if (lookahead == '$') ADVANCE(151);
3141  if (lookahead == '\\') ADVANCE(61);
3142  if (lookahead == '{') ADVANCE(154);
3143  if (lookahead == '.' ||
3144  lookahead == '=') ADVANCE(153);
3146  END_STATE();
3147  case 152:
3149  if (lookahead == '$') ADVANCE(151);
3150  if (lookahead == '\\') ADVANCE(61);
3152  END_STATE();
3153  case 153:
3155  if (lookahead == '$') ADVANCE(13);
3156  if (lookahead == '\\') ADVANCE(61);
3158  END_STATE();
3159  case 154:
3161  if (lookahead == '$') ADVANCE(13);
3162  if (lookahead == '\\') ADVANCE(50);
3163  if (lookahead == '}') ADVANCE(153);
3165  if (lookahead != 0 &&
3166  lookahead != '\n' &&
3167  lookahead != '\r' &&
3168  lookahead != ' ') ADVANCE(154);
3169  END_STATE();
3170  case 155:
3172  if (lookahead == '$') ADVANCE(191);
3173  if (lookahead == '(') ADVANCE(209);
3174  if (lookahead == '{') ADVANCE(54);
3176  END_STATE();
3177  case 156:
3179  if (lookahead == '$') ADVANCE(162);
3180  if (lookahead == '(') ADVANCE(209);
3181  if (lookahead == '{') ADVANCE(55);
3183  END_STATE();
3184  case 157:
3186  if (lookahead == '$') ADVANCE(152);
3187  if (lookahead == '(') ADVANCE(209);
3188  if (lookahead == '{') ADVANCE(57);
3190  END_STATE();
3191  case 158:
3193  if (lookahead == '$') ADVANCE(193);
3194  if (lookahead == '{') ADVANCE(58);
3196  END_STATE();
3197  case 159:
3199  if (lookahead == '(') ADVANCE(209);
3200  END_STATE();
3201  case 160:
3203  END_STATE();
3204  case 161:
3206  if (lookahead == '$') ADVANCE(161);
3207  if (lookahead == '\\') ADVANCE(60);
3208  if (lookahead == '{') ADVANCE(165);
3210  END_STATE();
3211  case 162:
3213  if (lookahead == '$') ADVANCE(161);
3214  if (lookahead == '\\') ADVANCE(60);
3216  END_STATE();
3217  case 163:
3219  if (lookahead == '$') ADVANCE(12);
3220  if (lookahead == '>') ADVANCE(177);
3221  if (lookahead == '\\') ADVANCE(60);
3223  END_STATE();
3224  case 164:
3226  if (lookahead == '$') ADVANCE(12);
3227  if (lookahead == '\\') ADVANCE(60);
3229  END_STATE();
3230  case 165:
3232  if (lookahead == '$') ADVANCE(12);
3233  if (lookahead == '\\') ADVANCE(49);
3234  if (lookahead == '}') ADVANCE(164);
3235  if (lookahead == '\t' ||
3236  lookahead == '"' ||
3237  lookahead == '#' ||
3238  ('\'' <= lookahead && lookahead <= ')') ||
3239  lookahead == ';' ||
3240  lookahead == '>' ||
3241  lookahead == '@' ||
3242  lookahead == '`' ||
3243  ('|' <= lookahead && lookahead <= '~')) ADVANCE(44);
3244  if (lookahead != 0 &&
3245  lookahead != '\n' &&
3246  lookahead != '\r' &&
3247  lookahead != ' ') ADVANCE(165);
3248  END_STATE();
3249  case 166:
3251  END_STATE();
3252  case 167:
3254  END_STATE();
3255  case 168:
3257  if (lookahead == '*' ||
3258  lookahead == '-' ||
3259  lookahead == '.' ||
3260  lookahead == ':') ADVANCE(137);
3261  END_STATE();
3262  case 169:
3264  if (('!' <= lookahead && lookahead <= '=')) ADVANCE(169);
3265  END_STATE();
3266  case 170:
3268  END_STATE();
3269  case 171:
3271  END_STATE();
3272  case 172:
3274  END_STATE();
3275  case 173:
3277  if (lookahead == '*' ||
3278  lookahead == '-') ADVANCE(172);
3279  END_STATE();
3280  case 174:
3282  END_STATE();
3283  case 175:
3285  if (lookahead == '>') ADVANCE(176);
3286  END_STATE();
3287  case 176:
3289  END_STATE();
3290  case 177:
3292  if (lookahead == '>') ADVANCE(178);
3293  END_STATE();
3294  case 178:
3296  END_STATE();
3297  case 179:
3299  END_STATE();
3300  case 180:
3302  END_STATE();
3303  case 181:
3305  if (lookahead == '>') ADVANCE(177);
3306  END_STATE();
3307  case 182:
3309  if (lookahead == '$') ADVANCE(42);
3310  if (lookahead == '%') ADVANCE(182);
3311  if (lookahead == '5') ADVANCE(184);
3313  END_STATE();
3314  case 183:
3316  if (lookahead == '$') ADVANCE(42);
3317  if (lookahead == '%') ADVANCE(182);
3318  if (lookahead == '>') ADVANCE(177);
3320  END_STATE();
3321  case 184:
3323  if (lookahead == '$') ADVANCE(42);
3324  if (lookahead == '%') ADVANCE(182);
3325  if (lookahead == 'C') ADVANCE(185);
3327  END_STATE();
3328  case 185:
3330  if (lookahead == '$') ADVANCE(42);
3331  if (lookahead == '%') ADVANCE(182);
3332  if (lookahead == 's') ADVANCE(186);
3334  END_STATE();
3335  case 186:
3337  if (lookahead == '$') ADVANCE(42);
3338  if (lookahead == '%') ADVANCE(182);
3340  END_STATE();
3341  case 187:
3343  if (lookahead == '$') ADVANCE(11);
3344  if (lookahead == '>') ADVANCE(177);
3345  if (lookahead == '\\') ADVANCE(59);
3347  END_STATE();
3348  case 188:
3350  if (lookahead == '$') ADVANCE(11);
3351  if (lookahead == '\\') ADVANCE(59);
3353  END_STATE();
3354  case 189:
3356  if (lookahead == '$') ADVANCE(11);
3357  if (lookahead == '\\') ADVANCE(48);
3358  if (lookahead == '}') ADVANCE(188);
3360  if (lookahead != 0 &&
3361  lookahead != '\n' &&
3362  lookahead != '\r' &&
3363  lookahead != ' ') ADVANCE(189);
3364  END_STATE();
3365  case 190:
3367  if (lookahead == '$') ADVANCE(190);
3368  if (lookahead == ',') ADVANCE(188);
3369  if (lookahead == '\\') ADVANCE(59);
3370  if (lookahead == '{') ADVANCE(189);
3372  END_STATE();
3373  case 191:
3375  if (lookahead == '$') ADVANCE(190);
3376  if (lookahead == '\\') ADVANCE(59);
3378  END_STATE();
3379  case 192:
3381  if (lookahead == '$') ADVANCE(192);
3382  if (lookahead == '\\') ADVANCE(62);
3383  if (lookahead == '{') ADVANCE(195);
3384  if (lookahead == ',' ||
3385  lookahead == ':') ADVANCE(194);
3387  END_STATE();
3388  case 193:
3390  if (lookahead == '$') ADVANCE(192);
3391  if (lookahead == '\\') ADVANCE(62);
3393  END_STATE();
3394  case 194:
3396  if (lookahead == '$') ADVANCE(14);
3397  if (lookahead == '\\') ADVANCE(62);
3399  END_STATE();
3400  case 195:
3402  if (lookahead == '$') ADVANCE(14);
3403  if (lookahead == '\\') ADVANCE(51);
3404  if (lookahead == '}') ADVANCE(194);
3406  if (lookahead != 0 &&
3407  lookahead != '\n' &&
3408  lookahead != '\r' &&
3409  lookahead != ' ') ADVANCE(195);
3410  END_STATE();
3411  case 196:
3413  if (lookahead == '\r') ADVANCE(198);
3414  if (lookahead != 0 &&
3415  lookahead != '\n' &&
3416  lookahead != '"' &&
3417  lookahead != '$' &&
3418  lookahead != '\\' &&
3419  lookahead != '`') ADVANCE(196);
3420  END_STATE();
3421  case 197:
3423  if (lookahead == '#') ADVANCE(196);
3424  if (lookahead == '\t' ||
3425  lookahead == ' ') ADVANCE(197);
3426  if (lookahead != 0 &&
3427  lookahead != '\n' &&
3428  (lookahead < '"' || '$' < lookahead) &&
3429  lookahead != '\\' &&
3430  lookahead != '`') ADVANCE(198);
3431  END_STATE();
3432  case 198:
3434  if (lookahead != 0 &&
3435  lookahead != '\n' &&
3436  lookahead != '"' &&
3437  lookahead != '$' &&
3438  lookahead != '\\' &&
3439  lookahead != '`') ADVANCE(198);
3440  END_STATE();
3441  case 199:
3443  END_STATE();
3444  case 200:
3446  if (lookahead == '(') ADVANCE(209);
3447  if (lookahead != 0 &&
3448  lookahead != '"') ADVANCE(199);
3449  END_STATE();
3450  case 201:
3452  END_STATE();
3453  case 202:
3455  if (lookahead == '\n' ||
3456  lookahead == '"' ||
3457  lookahead == '$' ||
3458  lookahead == '\\' ||
3459  lookahead == '`') ADVANCE(201);
3460  END_STATE();
3461  case 203:
3463  END_STATE();
3464  case 204:
3466  if (lookahead == '\r') ADVANCE(206);
3467  if (lookahead != 0 &&
3468  lookahead != '\n' &&
3469  lookahead != '\'' &&
3470  lookahead != '\\') ADVANCE(204);
3471  END_STATE();
3472  case 205:
3474  if (lookahead == '#') ADVANCE(204);
3475  if (lookahead == '\t' ||
3476  lookahead == ' ') ADVANCE(205);
3477  if (lookahead != 0 &&
3478  lookahead != '\n' &&
3479  lookahead != '\'' &&
3480  lookahead != '\\') ADVANCE(206);
3481  END_STATE();
3482  case 206:
3484  if (lookahead != 0 &&
3485  lookahead != '\n' &&
3486  lookahead != '\'' &&
3487  lookahead != '\\') ADVANCE(206);
3488  END_STATE();
3489  case 207:
3491  END_STATE();
3492  case 208:
3494  if (lookahead == '\n' ||
3495  lookahead == '\'' ||
3496  lookahead == '\\') ADVANCE(207);
3497  END_STATE();
3498  case 209:
3500  END_STATE();
3501  case 210:
3503  END_STATE();
3504  case 211:
3506  if (('0' <= lookahead && lookahead <= '9')) ADVANCE(211);
3507  END_STATE();
3508  case 212:
3510  if (('0' <= lookahead && lookahead <= '9')) ADVANCE(212);
3511  END_STATE();
3512  case 213:
3514  if (lookahead == '"') ADVANCE(214);
3515  if (lookahead == '\\') ADVANCE(215);
3516  if (lookahead != 0 &&
3517  lookahead != '\n' &&
3518  lookahead != '\r') ADVANCE(213);
3519  END_STATE();
3520  case 214:
3522  if (lookahead != 0 &&
3523  lookahead != '\n' &&
3524  lookahead != '\r') ADVANCE(214);
3525  END_STATE();
3526  case 215:
3528  if (lookahead != 0 &&
3529  lookahead != '\n' &&
3530  lookahead != '\r') ADVANCE(213);
3531  END_STATE();
3532  case 216:
3534  END_STATE();
3535  case 217:
3537  END_STATE();
3538  default:
3539  return false;
3540  }
3541 }
#define e(frag)
lzma_index ** i
Definition: index.h:629
#define B(x)
Definition: arc.h:166
#define SKIP(offset)
Definition: cabinfo.c:81
#define r
Definition: crypto_rc6.c:12
const char * k
Definition: dsignal.c:11
const char * v
Definition: dsignal.c:12
int x
Definition: mipsasm.c:20
int n
Definition: mipsasm.c:19
static bool aux_sym_arg_identifier_token1_character_set_4(int32_t c)
Definition: parser.c:2121
static bool aux_sym_arg_identifier_token1_character_set_2(int32_t c)
Definition: parser.c:2085
static bool aux_sym_spec_arg_identifier_token1_character_set_1(int32_t c)
Definition: parser.c:2135
static bool sym__eq_sep_key_identifier_character_set_2(int32_t c)
Definition: parser.c:2031
static bool sym_grep_specifier_identifier_character_set_2(int32_t c)
Definition: parser.c:1865
static bool aux_sym__pf_dot_arg_identifier_token1_character_set_2(int32_t c)
Definition: parser.c:1911
static bool aux_sym_pf_arg_identifier_token1_character_set_2(int32_t c)
Definition: parser.c:1959
static bool aux_sym__pf_dot_arg_identifier_token1_character_set_3(int32_t c)
Definition: parser.c:1929
static bool sym__eq_sep_key_identifier_character_set_1(int32_t c)
Definition: parser.c:2013
static bool aux_sym_arg_identifier_token1_character_set_1(int32_t c)
Definition: parser.c:2067
static bool aux_sym__pf_dot_arg_identifier_token1_character_set_1(int32_t c)
Definition: parser.c:1895
static bool sym__eq_sep_key_identifier_character_set_3(int32_t c)
Definition: parser.c:2049
static bool aux_sym_tmp_eval_arg_token1_character_set_1(int32_t c)
Definition: parser.c:1995
static bool aux_sym_spec_arg_identifier_token1_character_set_2(int32_t c)
Definition: parser.c:2153
static bool sym_grep_specifier_identifier_character_set_3(int32_t c)
Definition: parser.c:1881
static bool aux_sym_pf_arg_identifier_token1_character_set_1(int32_t c)
Definition: parser.c:1943
static bool aux_sym_pf_arg_identifier_token1_character_set_3(int32_t c)
Definition: parser.c:1977
static bool sym_grep_specifier_identifier_character_set_1(int32_t c)
Definition: parser.c:1851
static bool aux_sym_spec_arg_identifier_token1_character_set_3(int32_t c)
Definition: parser.c:2171
static bool aux_sym_arg_identifier_token1_character_set_3(int32_t c)
Definition: parser.c:2103
#define START_LEXER()
Definition: parser.h:133
#define ADVANCE(state_value)
Definition: parser.h:145
#define ts_builtin_sym_end
Definition: parser.h:13
#define END_STATE()
Definition: parser.h:163
#define ACCEPT_TOKEN(symbol_value)
Definition: parser.h:158
static RzSocket * s
Definition: rtr.c:28
#define b(i)
Definition: sha256.c:42
#define f(i)
Definition: sha256.c:46
#define a(i)
Definition: sha256.c:41
bool(* eof)(const TSLexer *)
Definition: parser.h:50
Definition: dis.h:43
#define F(x)
Definition: tricore.h:111
if(dbg->bits==RZ_SYS_BITS_64)
Definition: windows-arm64.h:4

References ACCEPT_TOKEN, ADVANCE, anon_sym_AT, anon_sym_AT_AT, anon_sym_AT_AT_AT_EQ, anon_sym_AT_AT_ATc_COLON, anon_sym_AT_AT_DOT, anon_sym_AT_AT_EQ, anon_sym_AT_ATb, anon_sym_AT_ATC, anon_sym_AT_ATc_COLON, anon_sym_AT_ATdbt, anon_sym_AT_ATdbta, anon_sym_AT_ATdbtb, anon_sym_AT_ATdbts, anon_sym_AT_ATdm, anon_sym_AT_ATf, anon_sym_AT_ATF, anon_sym_AT_ATi, anon_sym_AT_ATii, anon_sym_AT_ATiS, anon_sym_AT_ATis, anon_sym_AT_ATiSS, anon_sym_AT_ATiz, anon_sym_AT_ATom, anon_sym_AT_ATr, anon_sym_AT_ATs_COLON, anon_sym_AT_ATt, anon_sym_AT_BANG, anon_sym_AT_LPAREN, anon_sym_ATa_COLON, anon_sym_ATb_COLON, anon_sym_ATB_COLON, anon_sym_ATe_COLON, anon_sym_ATF_COLON, anon_sym_ATf_COLON, anon_sym_ATi_COLON, anon_sym_ATk_COLON, anon_sym_ATo_COLON, anon_sym_ATr_COLON, anon_sym_ATs_COLON, anon_sym_ATv_COLON, anon_sym_ATx_COLON, anon_sym_BQUOTE, anon_sym_Cf, anon_sym_COLON, anon_sym_COMMA, anon_sym_CR, anon_sym_DOLLAR, anon_sym_DOLLAR_LPAREN, anon_sym_DOT, anon_sym_DOT_DOT_DOT, anon_sym_DOT_SLASH, anon_sym_DQUOTE, anon_sym_env, anon_sym_EQ, anon_sym_GT, anon_sym_GT_GT, anon_sym_LF, anon_sym_LPAREN, anon_sym_PERCENT, anon_sym_pfo, anon_sym_PIPE, anon_sym_PIPE_DOT, anon_sym_PIPEH, anon_sym_RPAREN, anon_sym_SEMI, anon_sym_SQUOTE, anon_sym_TILDE, aux_sym__dec_number_token1, aux_sym__dec_number_token2, aux_sym__interpret_stmt_token1, aux_sym__interpret_stmt_token2, aux_sym__interpret_stmt_token3, aux_sym__interpret_stmt_token4, aux_sym__pf_dot_arg_identifier_token1, aux_sym__pf_dot_arg_identifier_token1_character_set_1(), aux_sym__pf_dot_arg_identifier_token1_character_set_2(), aux_sym__pf_dot_arg_identifier_token1_character_set_3(), aux_sym__search_stmt_token1, aux_sym_arg_identifier_token1, aux_sym_arg_identifier_token1_character_set_1(), aux_sym_arg_identifier_token1_character_set_2(), aux_sym_arg_identifier_token1_character_set_3(), aux_sym_arg_identifier_token1_character_set_4(), aux_sym_double_quoted_arg_token1, aux_sym_double_quoted_arg_token2, aux_sym_double_quoted_arg_token3, aux_sym_grep_specifier_token1, aux_sym_legacy_quoted_stmt_token1, aux_sym_pf_arg_identifier_token1, aux_sym_pf_arg_identifier_token1_character_set_1(), aux_sym_pf_arg_identifier_token1_character_set_2(), aux_sym_pf_arg_identifier_token1_character_set_3(), aux_sym_pf_cmd_token1, aux_sym_single_quoted_arg_token1, aux_sym_single_quoted_arg_token2, aux_sym_spec_arg_identifier_token1, aux_sym_spec_arg_identifier_token1_character_set_1(), aux_sym_spec_arg_identifier_token1_character_set_2(), aux_sym_spec_arg_identifier_token1_character_set_3(), aux_sym_tmp_eval_arg_token1, aux_sym_tmp_eval_arg_token1_character_set_1(), END_STATE, TSLexer::eof, SKIP, START_LEXER, sym__comment, sym__eq_sep_key_identifier, sym__eq_sep_key_identifier_character_set_1(), sym__eq_sep_key_identifier_character_set_2(), sym__eq_sep_key_identifier_character_set_3(), sym_grep_specifier_identifier, sym_grep_specifier_identifier_character_set_1(), sym_grep_specifier_identifier_character_set_2(), sym_grep_specifier_identifier_character_set_3(), sym_html_append_operator, sym_html_redirect_operator, sym_macro_identifier, sym_pf_dot_cmd_identifier, sym_pf_dot_full_cmd_identifier, sym_pointer_identifier, sym_question_mark_identifier, sym_system_identifier, and ts_builtin_sym_end.

Referenced by tree_sitter_rzcmd().

Variable Documentation

◆ ts_alias_sequences

Initial value:
= {
[0] = {0},
[3] = {
},
[7] = {
},
[9] = {
},
[13] = {
},
[18] = {
},
[19] = {
},
[21] = {
},
}

Definition at line 1817 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_external_scanner_states

const bool ts_external_scanner_states[14][EXTERNAL_TOKEN_COUNT]
static

Definition at line 4075 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_external_scanner_symbol_map

◆ ts_field_map_entries

const TSFieldMapEntry ts_field_map_entries[]
static

Definition at line 1776 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_field_map_slices

const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT]
static
Initial value:
= {
[1] = {.index = 0, .length = 1},
[2] = {.index = 1, .length = 1},
[3] = {.index = 1, .length = 1},
[4] = {.index = 2, .length = 2},
[5] = {.index = 4, .length = 1},
[6] = {.index = 5, .length = 2},
[8] = {.index = 7, .length = 2},
[9] = {.index = 7, .length = 2},
[10] = {.index = 9, .length = 2},
[11] = {.index = 11, .length = 2},
[12] = {.index = 13, .length = 1},
[13] = {.index = 14, .length = 2},
[14] = {.index = 14, .length = 2},
[15] = {.index = 16, .length = 1},
[16] = {.index = 17, .length = 2},
[17] = {.index = 19, .length = 3},
[20] = {.index = 22, .length = 2},
}

Definition at line 1756 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_field_names

const char* const ts_field_names[]
static
Initial value:
= {
[0] = NULL,
[field_arg] = "arg",
[field_args] = "args",
[field_command] = "command",
[field_extra] = "extra",
[field_id] = "id",
[field_name] = "name",
[field_redirect_operator] = "redirect_operator",
[field_specifier] = "specifier",
[field_string] = "string",
}

Definition at line 1743 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_lex_modes

const TSLexMode ts_lex_modes[STATE_COUNT]
static

Definition at line 3543 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_non_terminal_alias_map

const uint16_t ts_non_terminal_alias_map[]
static
Initial value:

Definition at line 1844 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_parse_actions

const TSParseActionEntry ts_parse_actions[]
static

Definition at line 28191 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_parse_table

const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT]
static

Definition at line 4133 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_small_parse_table

const uint16_t ts_small_parse_table[]
static

Definition at line 12122 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_small_parse_table_map

const uint32_t ts_small_parse_table_map[]
static

Definition at line 27772 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_symbol_map

const TSSymbol ts_symbol_map[]
static

Definition at line 510 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_symbol_metadata

const TSSymbolMetadata ts_symbol_metadata[]
static

Definition at line 756 of file parser.c.

Referenced by tree_sitter_rzcmd().

◆ ts_symbol_names

const char* const ts_symbol_names[]
static

Definition at line 264 of file parser.c.

Referenced by tree_sitter_rzcmd().