Skip to content

Commit

Permalink
Merge pull request #10 from hatoo/subsume
Browse files Browse the repository at this point in the history
add :subsume
  • Loading branch information
hatoo authored Aug 11, 2024
2 parents 9a6af65 + b91202c commit 96b8dd6
Show file tree
Hide file tree
Showing 4 changed files with 4,457 additions and 4,029 deletions.
2 changes: 2 additions & 0 deletions tree-sitter-egglog/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ module.exports = grammar({
"rewrite",
$.expr,
$.expr,
optional(":subsume"),
optional(seq(":when", list($, $.fact))),
optional(seq(":ruleset", $.ident)),
$.rparen
Expand Down Expand Up @@ -193,6 +194,7 @@ module.exports = grammar({
$.rparen,
$.rparen
),
seq($.lparen, "subsume", $.lparen, $.ident, repeat($.expr), $.rparen, $.rparen),
seq($.lparen, "union", $.expr, $.expr, $.rparen),
seq($.lparen, "panic", $.string, $.rparen),
seq($.lparen, "extract", $.expr, $.rparen),
Expand Down
48 changes: 48 additions & 0 deletions tree-sitter-egglog/src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tree-sitter-egglog/src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 96b8dd6

Please sign in to comment.