greybel-interpreter 0.1.6 → 0.2.0

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/dist/context.js CHANGED
@@ -280,20 +280,22 @@ var Debugger = /** @class */ (function () {
280
280
  me = this;
281
281
  _a.label = 1;
282
282
  case 1:
283
- _a.trys.push([1, 3, , 4]);
283
+ _a.trys.push([1, 4, , 5]);
284
284
  parser = new greybel_core_1.Parser(code);
285
285
  chunk = parser.parseChunk();
286
- item = me.lastContext.cps.visit(chunk);
286
+ return [4 /*yield*/, me.lastContext.cps.visit(chunk)];
287
+ case 2:
288
+ item = _a.sent();
287
289
  context = me.lastContext.fork(ContextType.INJECTION, ContextState.TEMPORARY);
288
290
  return [4 /*yield*/, item.run(context)];
289
- case 2:
290
- _a.sent();
291
- return [3 /*break*/, 4];
292
291
  case 3:
292
+ _a.sent();
293
+ return [3 /*break*/, 5];
294
+ case 4:
293
295
  err_1 = _a.sent();
294
296
  console.error(err_1);
295
- return [3 /*break*/, 4];
296
- case 4: return [2 /*return*/];
297
+ return [3 /*break*/, 5];
298
+ case 5: return [2 /*return*/];
297
299
  }
298
300
  });
299
301
  });
package/dist/cps.d.ts CHANGED
@@ -11,5 +11,5 @@ export declare const CPSMap: (visit: (o: ASTBase) => any, context: CPSMapContext
11
11
  export default class CPS {
12
12
  cpsMap: CPSMapType;
13
13
  constructor(context: CPSMapContext);
14
- visit(o: ASTBase): any;
14
+ visit(o: ASTBase): Promise<any>;
15
15
  }