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

Function Documentation

◆ tree_sitter_c()

TSLanguage* tree_sitter_c ( )

Definition at line 79645 of file parser.c.

79645  {
79646  static const TSLanguage language = {
79648  .symbol_count = SYMBOL_COUNT,
79649  .alias_count = ALIAS_COUNT,
79650  .token_count = TOKEN_COUNT,
79651  .external_token_count = EXTERNAL_TOKEN_COUNT,
79652  .state_count = STATE_COUNT,
79653  .large_state_count = LARGE_STATE_COUNT,
79654  .production_id_count = PRODUCTION_ID_COUNT,
79655  .field_count = FIELD_COUNT,
79656  .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
79657  .parse_table = &ts_parse_table[0][0],
79658  .small_parse_table = ts_small_parse_table,
79659  .small_parse_table_map = ts_small_parse_table_map,
79660  .parse_actions = ts_parse_actions,
79661  .symbol_names = ts_symbol_names,
79662  .field_names = ts_field_names,
79663  .field_map_slices = ts_field_map_slices,
79664  .field_map_entries = ts_field_map_entries,
79665  .symbol_metadata = ts_symbol_metadata,
79666  .public_symbol_map = ts_symbol_map,
79667  .alias_map = ts_non_terminal_alias_map,
79668  .alias_sequences = &ts_alias_sequences[0][0],
79669  .lex_modes = ts_lex_modes,
79670  .lex_fn = ts_lex,
79671  .keyword_lex_fn = ts_lex_keywords,
79672  .keyword_capture_token = sym_identifier,
79673  };
79674  return &language;
79675 }
uint32_t version
Definition: parser.h:91
static const TSFieldMapEntry ts_field_map_entries[]
Definition: parser.c:2086
static bool ts_lex_keywords(TSLexer *lexer, TSStateId state)
Definition: parser.c:4305
static const uint16_t ts_non_terminal_alias_map[]
Definition: parser.c:2343
static const uint32_t ts_small_parse_table_map[]
Definition: parser.c:76844
static const TSSymbol ts_symbol_map[]
Definition: parser.c:570
static bool ts_lex(TSLexer *lexer, TSStateId state)
Definition: parser.c:2347
#define FIELD_COUNT
Definition: parser.c:15
static const TSParseActionEntry ts_parse_actions[]
Definition: parser.c:78007
static const uint16_t ts_small_parse_table[]
Definition: parser.c:41251
@ sym_identifier
Definition: parser.c:20
#define STATE_COUNT
Definition: parser.c:9
static const TSLexMode ts_lex_modes[STATE_COUNT]
Definition: parser.c:5480
#define LARGE_STATE_COUNT
Definition: parser.c:10
#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:2004
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT]
Definition: parser.c:7048
#define TOKEN_COUNT
Definition: parser.c:13
static const TSSymbolMetadata ts_symbol_metadata[]
Definition: parser.c:846
#define ALIAS_COUNT
Definition: parser.c:12
static const char *const ts_symbol_names[]
Definition: parser.c:294
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH]
Definition: parser.c:2306
#define MAX_ALIAS_SEQUENCE_LENGTH
Definition: parser.c:16
static const char *const ts_field_names[]
Definition: parser.c:1975
#define EXTERNAL_TOKEN_COUNT
Definition: parser.c:14
#define LANGUAGE_VERSION
Definition: parser.c:8