-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tree Sitter Flattening now uses its own alloc_module_interface_tree
- Loading branch information
Showing
6 changed files
with
63 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
module myMod : int a -> int o { | ||
int x = a; | ||
o = x; | ||
|
||
module submodule : int a, int b -> int r { | ||
r = a * b; | ||
} | ||
|
||
module contains_submodule_submodule : int a, int b, int c -> int r { | ||
int tmp = submodule(a, b); | ||
reg r = tmp + c; | ||
} |
Submodule tree-sitter-sus
updated
4 files
+7 −7 | grammar.js | |
+24 −20 | src/grammar.json | |
+24 −0 | src/node-types.json | |
+3,107 −2,196 | src/parser.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cd tree-sitter-sus | ||
tree-sitter generate && | ||
tree-sitter parse ../resetNormalizer.sus | ||
tree-sitter parse ../tinyTestFile.sus | ||
cd .. | ||
|