Refactor parser header
Make separate lexer, stack and parser structs.
This commit is contained in:
parent
05a5f9c124
commit
0dc3a95d0c
11 changed files with 361 additions and 276 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "runtime_spec_helper.h"
|
||||
|
||||
extern ts_parse_config ts_parse_config_arithmetic;
|
||||
extern "C" ts_parser ts_parse_config_arithmetic();
|
||||
|
||||
START_TEST
|
||||
|
||||
|
|
@ -9,7 +9,8 @@ describe("arithmetic", []() {
|
|||
|
||||
before_each([&]() {
|
||||
doc = ts_document_make();
|
||||
ts_document_set_parser(doc, ts_parse_config_arithmetic);
|
||||
ts_parser parser = ts_parse_config_arithmetic();
|
||||
ts_document_set_parser(doc, parser);
|
||||
});
|
||||
|
||||
after_each([&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue