Skip to content

Commit

Permalink
chore: fix license in grammar.js, update grammar.json to incl. PREC
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Mar 7, 2023
1 parent 86fc184 commit 6ad899d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file Squirrel grammar for tree-sitter
* @author Amaan Qureshi <[email protected]>
* @license Apache-2.0
* @license MIT
* @see {@link http://squirrel-lang.org|official website}
* @see {@link https://github.com/albertodemichelis/squirrel|official repository}
* @see {@link http://squirrel-lang.org/squirreldoc/reference/index.html|official spec}
Expand Down
22 changes: 21 additions & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -3734,6 +3734,26 @@
"supertypes": [
"expression",
"primary_expression"
]
],
"PREC": {
"PAREN": -1,
"ASSIGN": 1,
"TERNARY": 2,
"LOGICAL_OR": 3,
"LOGICAL_AND": 4,
"IN": 4,
"INCLUSIVE_OR": 5,
"EXCLUSIVE_OR": 6,
"BITWISE_AND": 7,
"EQUALITY": 8,
"COMPARISON": 9,
"INSTANCEOF": 9,
"SHIFT": 10,
"ADDITIVE": 11,
"MULTIPLICATIVE": 12,
"UNARY": 13,
"CALL": 14,
"MEMBER": 15
}
}

0 comments on commit 6ad899d

Please sign in to comment.