Add rule precedence construct
Still need to add some way of expressing left and right associativity
This commit is contained in:
parent
e23604ac52
commit
a437d39773
23 changed files with 750 additions and 1504 deletions
|
|
@ -18,8 +18,8 @@ describe("tracking the positions of AST nodes", []() {
|
|||
|
||||
it("records the widths and offsets of nodes", [&]() {
|
||||
ts_document_set_input_string(doc, " [12, 5]");
|
||||
const ts_tree *tree = ts_document_tree(doc);
|
||||
|
||||
const ts_tree *tree = ts_document_tree(doc);
|
||||
const ts_tree *array = ts_tree_children(tree, NULL)[0];
|
||||
const ts_tree *number1 = ts_tree_children(array, NULL)[0];
|
||||
const ts_tree *number2 = ts_tree_children(array, NULL)[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue