Comparing version 0.1.1 to 0.1.2
#!/usr/bin/env node | ||
require("../dist/cli"); |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _path = require("path"); | ||
var _Env = _interopRequireDefault(require("./Env")); | ||
@@ -19,3 +21,3 @@ | ||
var _path = require("path"); | ||
var _getAppDir = _interopRequireDefault(require("./helpers/getAppDir")); | ||
@@ -26,5 +28,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const env = new _Env.default(); | ||
(0, _importModule.default)(env, (0, _path.resolve)("./exts/index.iamlisp")); | ||
(0, _importModule.default)(env, (0, _path.resolve)((0, _getAppDir.default)(), "../exts/index.iamlisp")); | ||
return code => (0, _print.default)((0, _evaluate.default)((0, _parse.default)(code), env)); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVFdmFsdWF0b3IuanMiXSwibmFtZXMiOlsiY3JlYXRlRXZhbHVhdG9yIiwiZW52IiwiRW52IiwiY29kZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOztBQUNBOztBQUNBOztBQUNBOztBQUNBOztBQUNBOzs7O0FBRWUsU0FBU0EsZUFBVCxHQUEyQjtBQUN4QyxRQUFNQyxHQUFHLEdBQUcsSUFBSUMsWUFBSixFQUFaO0FBRUEsNkJBQWFELEdBQWIsRUFBa0IsbUJBQVEsc0JBQVIsQ0FBbEI7QUFFQSxTQUFPRSxJQUFJLElBQUksb0JBQU0sdUJBQVMsb0JBQU1BLElBQU4sQ0FBVCxFQUFzQkYsR0FBdEIsQ0FBTixDQUFmO0FBQ0QiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRW52IGZyb20gXCIuL0VudlwiO1xyXG5pbXBvcnQgcHJpbnQgZnJvbSBcIi4vcHJpbnRlci9wcmludFwiO1xyXG5pbXBvcnQgZXZhbHVhdGUgZnJvbSBcIi4vZXZhbHVhdG9yL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JcbmltcG9ydCBFbnYgZnJvbSBcIi4vRW52XCI7XHJcbmltcG9ydCBwcmludCBmcm9tIFwiLi9wcmludGVyL3ByaW50XCI7XHJcbmltcG9ydCBldmFsdWF0ZSBmcm9tIFwiLi9ldmFsdWF0b3IvZXZhbHVhdGVcIjtcclxuaW1wb3J0IHBhcnNlIGZyb20gXCIuL3BhcnNlci9wYXJzZVwiO1xyXG5pbXBvcnQgaW1wb3J0TW9kdWxlIGZyb20gXCIuL2V2YWx1YXRvci9pbXBvcnRNb2R1bGVcIjtcclxuaW1wb3J0IGdldEFwcERpciBmcm9tIFwiLi9oZWxwZXJzL2dldEFwcERpclwiO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gY3JlYXRlRXZhbHVhdG9yKCkge1xyXG4gIGNvbnN0IGVudiA9IG5ldyBFbnYoKTtcclxuXHJcbiAgaW1wb3J0TW9kdWxlKGVudiwgcmVzb2x2ZShnZXRBcHBEaXIoKSwgXCIuLi9leHRzL2luZGV4LmlhbWxpc3BcIikpO1xyXG5cclxuICByZXR1cm4gY29kZSA9PiBwcmludChldmFsdWF0ZShwYXJzZShjb2RlKSwgZW52KSk7XHJcbn1cclxuIl19 |
{ | ||
"name": "iamlisp", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Another one LISP interpreter.", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -0,1 +1,2 @@ | ||
import { resolve } from "path"; | ||
import Env from "./Env"; | ||
@@ -6,3 +7,3 @@ import print from "./printer/print"; | ||
import importModule from "./evaluator/importModule"; | ||
import { resolve } from "path"; | ||
import getAppDir from "./helpers/getAppDir"; | ||
@@ -12,5 +13,5 @@ export default function createEvaluator() { | ||
importModule(env, resolve("./exts/index.iamlisp")); | ||
importModule(env, resolve(getAppDir(), "../exts/index.iamlisp")); | ||
return code => print(evaluate(parse(code), env)); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200340
95
2545