My original thought was to decouple the runtime from the LR parser generator by making TSParser a generic interface that LR parsers implement. I think this was more trouble than it was worth.
23 lines
343 B
C
23 lines
343 B
C
#ifndef HELPERS_DUMMY_PARSER_H_
|
|
#define HELPERS_DUMMY_PARSER_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "tree_sitter/runtime.h"
|
|
#include "tree_sitter/parser.h"
|
|
|
|
enum {
|
|
dummy_sym1 = 2,
|
|
dummy_sym2 = 3,
|
|
dummy_sym3 = 4,
|
|
};
|
|
|
|
extern TSParserConfig dummy_parser;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // HELPERS_DUMMY_PARSER_H_
|