Skip to content

Commit

Permalink
operator: ^^ boolean logic operator
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 3, 2024
1 parent b1ead54 commit b9da415
Show file tree
Hide file tree
Showing 4 changed files with 2,475 additions and 2,354 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module.exports = grammar({
map_item_list: $ => choice($.map_item, seq($.map_item, ",", $.map_item_list)),
map: $ => prec(-1, seq("{", optional($.map_item_list), "}")),

operator: _ => choice("+", "-", "*", "/", "%", "**", "&&", "||", "==", "!=", "<", ">", "<=", ">="),
operator: _ => choice("+", "-", "*", "/", "%", "**", "&&", "||", "^^", "==", "!=", "<", ">", "<=", ">="),
overloadable_operator: _ => choice("++", "==="),
primitive_type: _ => choice("any", "int", "str", "bool", "void"),
identifier: $ => choice(/[_A-z][_A-z0-9]*/, $.primitive_type),
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json

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

4 changes: 4 additions & 0 deletions 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 b9da415

Please sign in to comment.