pacc 8.11.0 → 8.11.1

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/README.md CHANGED
@@ -158,6 +158,9 @@ const result = expand("${a + 1}",{ root: { a: 2 }});
158
158
  * [BAR](#bar)
159
159
  * [DOUBLE\_BAR](#double_bar)
160
160
  * [IDENTIFIER](#identifier)
161
+ * [STRING](#string)
162
+ * [NUMBER](#number)
163
+ * [BOOLEAN](#boolean)
161
164
  * [EOF](#eof)
162
165
  * [Type](#type)
163
166
  * [Properties](#properties-3)
@@ -764,6 +767,18 @@ Type: [Token](#token)
764
767
 
765
768
  Type: [Token](#token)
766
769
 
770
+ ## STRING
771
+
772
+ Type: [Token](#token)
773
+
774
+ ## NUMBER
775
+
776
+ Type: [Token](#token)
777
+
778
+ ## BOOLEAN
779
+
780
+ Type: [Token](#token)
781
+
767
782
  ## EOF
768
783
 
769
784
  Type: [Token](#token)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "8.11.0",
3
+ "version": "8.11.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/tokens.mjs CHANGED
@@ -10,8 +10,6 @@ const lookup = {};
10
10
  * @property {string} str
11
11
  */
12
12
 
13
- function infix() {}
14
-
15
13
  /**
16
14
  *
17
15
  * @param {string} str
@@ -94,6 +92,9 @@ export /** @type {Token} */ const MINUS = createBinopToken(
94
92
  "infix",
95
93
  (left, right) => left - right
96
94
  );
95
+
96
+ MINUS.nud = (parser) => - parser.value;
97
+
97
98
  export /** @type {Token} */ const STAR = createBinopToken(
98
99
  "*",
99
100
  60,
@@ -8,7 +8,9 @@ export function tokens(string: string, options?: {}): Generator<any, void, unkno
8
8
  export namespace PLUS {
9
9
  let str: string;
10
10
  }
11
- export namespace MINUS { }
11
+ export namespace MINUS {
12
+ function nud(parser: any): number;
13
+ }
12
14
  export namespace STAR { }
13
15
  export namespace DIVIDE { }
14
16
  export namespace NOT { }