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,12 +1,12 @@
#include "test_grammars.h"
#include "rules.h"
#include "compiler.h"
using namespace tree_sitter;
using namespace rules;
namespace test_grammars {
Grammar arithmetic() {
return Grammar({
return Grammar("expression", {
{ "expression", choice({
seq({
sym("term"),