@weborigami/language 0.0.62 → 0.0.63

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weborigami/language",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "Web Origami expression language compiler and runtime",
5
5
  "type": "module",
6
6
  "main": "./main.js",
@@ -11,8 +11,8 @@
11
11
  "typescript": "5.5.3"
12
12
  },
13
13
  "dependencies": {
14
- "@weborigami/async-tree": "0.0.62",
15
- "@weborigami/types": "0.0.62",
14
+ "@weborigami/async-tree": "0.0.63",
15
+ "@weborigami/types": "0.0.63",
16
16
  "watcher": "2.3.1"
17
17
  },
18
18
  "scripts": {
@@ -63,9 +63,8 @@ callTarget "function call"
63
63
  / group
64
64
  / scopeReference
65
65
 
66
- // Required closing curly brace. We use this for the `tree` term: it's the last
67
- // term in the `step` parser that starts with a curly brace, so if that parser
68
- // sees a left curly brace, here we must see a right curly brace.
66
+ // Required closing curly brace. We use this for the `object` term: if the
67
+ // parser sees a left curly brace, here we must see a right curly brace.
69
68
  closingBrace
70
69
  = "}"
71
70
  / .? {
@@ -207,7 +206,7 @@ number "number"
207
206
 
208
207
  // An object literal: `{foo: 1, bar: 2}`
209
208
  object "object literal"
210
- = "{" __ entries:objectEntries? __ "}" {
209
+ = "{" __ entries:objectEntries? __ closingBrace {
211
210
  return annotate(makeObject(entries ?? [], ops.object), location());
212
211
  }
213
212
 
@@ -1942,13 +1942,7 @@ function peg$parse(input, options) {
1942
1942
  s3 = null;
1943
1943
  }
1944
1944
  s4 = peg$parse__();
1945
- if (input.charCodeAt(peg$currPos) === 125) {
1946
- s5 = peg$c2;
1947
- peg$currPos++;
1948
- } else {
1949
- s5 = peg$FAILED;
1950
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
1951
- }
1945
+ s5 = peg$parseclosingBrace();
1952
1946
  if (s5 !== peg$FAILED) {
1953
1947
  peg$savedPos = s0;
1954
1948
  s0 = peg$f17(s3);