Rizin
unix-like reverse engineering framework and cli tools
TSLanguage Struct Reference

#include <parser.h>

Public Attributes

uint32_t version
 
uint32_t symbol_count
 
uint32_t alias_count
 
uint32_t token_count
 
uint32_t external_token_count
 
uint32_t state_count
 
uint32_t large_state_count
 
uint32_t production_id_count
 
uint32_t field_count
 
uint16_t max_alias_sequence_length
 
const uint16_tparse_table
 
const uint16_tsmall_parse_table
 
const uint32_tsmall_parse_table_map
 
const TSParseActionEntryparse_actions
 
const char *constsymbol_names
 
const char *constfield_names
 
const TSFieldMapSlicefield_map_slices
 
const TSFieldMapEntryfield_map_entries
 
const TSSymbolMetadatasymbol_metadata
 
const TSSymbolpublic_symbol_map
 
const uint16_talias_map
 
const TSSymbolalias_sequences
 
const TSLexModelex_modes
 
bool(* lex_fn )(TSLexer *, TSStateId)
 
bool(* keyword_lex_fn )(TSLexer *, TSStateId)
 
TSSymbol keyword_capture_token
 
struct {
   const bool *   states
 
   const TSSymbol *   symbol_map
 
   void *(*   create )(void)
 
   void(*   destroy )(void *)
 
   bool(*   scan )(void *, TSLexer *, const
      bool *symbol_whitelist)
 
   unsigned(*   serialize )(void *, char *)
 
   void(*   deserialize )(void *, const char *, unsigned)
 
external_scanner
 
const TSStateIdprimary_state_ids
 
struct {
   const bool *   states
 
   const TSSymbol *   symbol_map
 
   void *(*   create )(void)
 
   void(*   destroy )(void *)
 
   bool(*   scan )(void *, TSLexer *, const
      bool *symbol_whitelist)
 
   unsigned(*   serialize )(void *, char *)
 
   void(*   deserialize )(void *, const char *, unsigned)
 
external_scanner
 
struct {
   const bool *   states
 
   const TSSymbol *   symbol_map
 
   void *(*   create )(void)
 
   void(*   destroy )(void *)
 
   bool(*   scan )(void *, TSLexer *, const
      bool *symbol_whitelist)
 
   unsigned(*   serialize )(void *, char *)
 
   void(*   deserialize )(void *, const char *, unsigned)
 
external_scanner
 

Detailed Description

Definition at line 90 of file parser.h.

Member Data Documentation

◆ alias_count

uint32_t TSLanguage::alias_count

Definition at line 93 of file parser.h.

◆ alias_map

const uint16_t * TSLanguage::alias_map

Definition at line 111 of file parser.h.

◆ alias_sequences

const TSSymbol * TSLanguage::alias_sequences

Definition at line 112 of file parser.h.

Referenced by ts_subtree__print_dot_graph().

◆ create

void*(* TSLanguage::create) (void) ( void  )

Definition at line 120 of file parser.h.

Referenced by parser_set_language(), and ts_parser_set_language().

◆ deserialize

void(* TSLanguage::deserialize) (void *, const char *, unsigned)

Definition at line 124 of file parser.h.

◆ destroy

void(* TSLanguage::destroy) (void *)

Definition at line 121 of file parser.h.

◆  [1/3]

struct { ... } TSLanguage::external_scanner

◆  [2/3]

struct { ... } TSLanguage::external_scanner

◆  [3/3]

struct { ... } TSLanguage::external_scanner

◆ external_token_count

uint32_t TSLanguage::external_token_count

Definition at line 95 of file parser.h.

◆ field_count

uint32_t TSLanguage::field_count

Definition at line 99 of file parser.h.

◆ field_map_entries

const TSFieldMapEntry * TSLanguage::field_map_entries

Definition at line 108 of file parser.h.

◆ field_map_slices

const TSFieldMapSlice * TSLanguage::field_map_slices

Definition at line 107 of file parser.h.

◆ field_names

const char *const * TSLanguage::field_names

Definition at line 106 of file parser.h.

Referenced by ts_subtree__write_to_string().

◆ keyword_capture_token

TSSymbol TSLanguage::keyword_capture_token

Definition at line 116 of file parser.h.

◆ keyword_lex_fn

bool(* TSLanguage::keyword_lex_fn)(TSLexer *, TSStateId)

Definition at line 115 of file parser.h.

◆ large_state_count

uint32_t TSLanguage::large_state_count

Definition at line 97 of file parser.h.

◆ lex_fn

bool(* TSLanguage::lex_fn)(TSLexer *, TSStateId)

Definition at line 114 of file parser.h.

◆ lex_modes

const TSLexMode * TSLanguage::lex_modes

Definition at line 113 of file parser.h.

◆ max_alias_sequence_length

uint16_t TSLanguage::max_alias_sequence_length

Definition at line 100 of file parser.h.

Referenced by ts_subtree__print_dot_graph().

◆ parse_actions

const TSParseActionEntry * TSLanguage::parse_actions

Definition at line 104 of file parser.h.

◆ parse_table

const uint16_t * TSLanguage::parse_table

Definition at line 101 of file parser.h.

◆ primary_state_ids

const TSStateId * TSLanguage::primary_state_ids

Definition at line 126 of file parser.h.

◆ production_id_count

uint32_t TSLanguage::production_id_count

Definition at line 98 of file parser.h.

◆ public_symbol_map

const TSSymbol * TSLanguage::public_symbol_map

Definition at line 110 of file parser.h.

◆ scan

bool(* TSLanguage::scan) (void *, TSLexer *, const bool *symbol_whitelist)

Definition at line 122 of file parser.h.

◆ serialize

unsigned(* TSLanguage::serialize) (void *, char *)

Definition at line 123 of file parser.h.

◆ small_parse_table

const uint16_t * TSLanguage::small_parse_table

Definition at line 102 of file parser.h.

◆ small_parse_table_map

const uint32_t * TSLanguage::small_parse_table_map

Definition at line 103 of file parser.h.

◆ state_count

uint32_t TSLanguage::state_count

Definition at line 96 of file parser.h.

Referenced by state_predecessor_map_new().

◆ states

const bool* TSLanguage::states

Definition at line 118 of file parser.h.

◆ symbol_count

uint32_t TSLanguage::symbol_count

Definition at line 92 of file parser.h.

◆ symbol_map

const TSSymbol* TSLanguage::symbol_map

Definition at line 119 of file parser.h.

◆ symbol_metadata

const TSSymbolMetadata * TSLanguage::symbol_metadata

Definition at line 109 of file parser.h.

◆ symbol_names

const char *const * TSLanguage::symbol_names

Definition at line 105 of file parser.h.

◆ token_count

uint32_t TSLanguage::token_count

Definition at line 94 of file parser.h.

◆ version

uint32_t TSLanguage::version

Definition at line 91 of file parser.h.

Referenced by tree_sitter_c(), tree_sitter_rzcmd(), ts_parser_set_language(), and ts_query_new().


The documentation for this struct was generated from the following file: