pacc 8.11.2 → 8.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/expression.mjs +1 -1
- package/src/tokens.mjs +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacc",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=24.13.
|
|
51
|
+
"node": ">=24.13.1"
|
|
52
52
|
},
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
package/src/expression.mjs
CHANGED
package/src/tokens.mjs
CHANGED
|
@@ -93,7 +93,7 @@ export /** @type {Token} */ const MINUS = createBinopToken(
|
|
|
93
93
|
(left, right) => left - right
|
|
94
94
|
);
|
|
95
95
|
|
|
96
|
-
MINUS.nud = (parser) => - parser.
|
|
96
|
+
MINUS.nud = (parser) => - parser.expression(100);
|
|
97
97
|
|
|
98
98
|
export /** @type {Token} */ const STAR = createBinopToken(
|
|
99
99
|
"*",
|
|
@@ -179,7 +179,7 @@ export /** @type {Token} */ const OPEN_ROUND = createToken(
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
|
|
182
|
-
export /** @type {Token} */ const CLOSE_ROUND = createToken(")", 0
|
|
182
|
+
export /** @type {Token} */ const CLOSE_ROUND = createToken(")", 0);
|
|
183
183
|
export /** @type {Token} */ const OPEN_BRACKET = createToken(
|
|
184
184
|
"[",
|
|
185
185
|
10,
|
|
@@ -214,7 +214,7 @@ export /** @type {Token} */ const OPEN_BRACKET = createToken(
|
|
|
214
214
|
}
|
|
215
215
|
);
|
|
216
216
|
|
|
217
|
-
export /** @type {Token} */ const CLOSE_BRACKET = createToken("]", 0
|
|
217
|
+
export /** @type {Token} */ const CLOSE_BRACKET = createToken("]", 0);
|
|
218
218
|
export /** @type {Token} */ const OPEN_CURLY = createToken("{");
|
|
219
219
|
export /** @type {Token} */ const CLOSE_CURLY = createToken("}");
|
|
220
220
|
export /** @type {Token} */ const QUESTION = createToken("?", 20, "infix");
|