Extract public compiler API into its own header file
This commit is contained in:
parent
0b4e1c8d0d
commit
9e2dc14182
53 changed files with 466 additions and 409 deletions
4
spec/fixtures/grammars/arithmetic.cpp
vendored
4
spec/fixtures/grammars/arithmetic.cpp
vendored
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue