Rizin
unix-like reverse engineering framework and cli tools
binding.cc File Reference
#include "tree_sitter/parser.h"
#include <node.h>
#include "nan.h"

Go to the source code of this file.

Functions

TSLanguagetree_sitter_rzcmd ()
 

Function Documentation

◆ tree_sitter_rzcmd()

TSLanguage* tree_sitter_rzcmd ( )

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