tree-sitter/spec/runtime/helpers/dummy_parser.h
Max Brunsfeld 9da7663e99 Combine TSParser and TSStateMachine objects
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.
2014-07-10 13:23:20 -07:00

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_