2014-06-08 16:31:45 -07:00
|
|
|
#ifndef HELPERS_DUMMY_PARSER_H_
|
|
|
|
|
#define HELPERS_DUMMY_PARSER_H_
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-06-28 19:22:16 -07:00
|
|
|
#include "tree_sitter/parser/state_machine.h"
|
2014-06-08 16:31:45 -07:00
|
|
|
|
|
|
|
|
enum {
|
|
|
|
|
dummy_sym1 = 2,
|
|
|
|
|
dummy_sym2 = 3,
|
|
|
|
|
dummy_sym3 = 4,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct test_parser {
|
|
|
|
|
size_t state_count;
|
|
|
|
|
size_t symbol_count;
|
2014-06-28 19:06:37 -07:00
|
|
|
const TSParseAction **parse_table;
|
2014-06-28 18:51:06 -07:00
|
|
|
const TSStateId *lex_states;
|
2014-06-08 16:31:45 -07:00
|
|
|
const int *hidden_symbols;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern struct test_parser dummy_parser;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif // HELPERS_DUMMY_PARSER_H_
|