Extract public compiler API into its own header file

This commit is contained in:
Max Brunsfeld 2014-02-16 22:13:08 -08:00
parent 0b4e1c8d0d
commit 9e2dc14182
53 changed files with 466 additions and 409 deletions

View file

@ -1,5 +1,5 @@
#include "test_grammars.h"
#include "rules.h"
#include "compiler.h"
using namespace tree_sitter;
using namespace rules;
@ -34,12 +34,12 @@ namespace test_grammars {
comma_sep(sym("value")),
aux_sym("right_bracket"), }) },
{ "string", seq({
character('"'),
character({ '"' }),
repeat(choice({
pattern("[^\"]"),
str("\\\""),
})),
character('"') }) },
character({ '"' }) }) },
{ "number", pattern("\\d+") }
}, {
{ "comma", str(",") },