@dallaylaen/ski-interpreter 2.9.0 → 2.9.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.
@@ -1282,7 +1282,7 @@ var PartialLambda = class _PartialLambda extends Empty {
1282
1282
  return this;
1283
1283
  }
1284
1284
  postParse() {
1285
- let expr = this.impl;
1285
+ let expr = postParse(this.impl);
1286
1286
  for (let i = this.terms.length; i-- > 0; )
1287
1287
  expr = new Lambda(this.terms[i], expr);
1288
1288
  return expr;
@@ -1293,7 +1293,7 @@ var PartialLambda = class _PartialLambda extends Empty {
1293
1293
  } */
1294
1294
  };
1295
1295
  function postParse(expr) {
1296
- return expr.postParse ? expr.postParse() : expr;
1296
+ return expr instanceof Empty ? expr.postParse() : expr;
1297
1297
  }
1298
1298
  var combChars = new Tokenizer(
1299
1299
  "[()]",
@@ -1565,7 +1565,7 @@ var Parser = class {
1565
1565
  parser: this
1566
1566
  };
1567
1567
  }
1568
- return expr;
1568
+ return postParse(expr);
1569
1569
  }
1570
1570
  /**
1571
1571
  * Parse a single line of source code, without splitting it into declarations.