Skip to content

Commit

Permalink
add :subsume
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Aug 11, 2024
1 parent 9a6af65 commit b91202c
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 b91202c

Please sign in to comment.