greybel-interpreter 1.0.4 → 1.1.2
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/.editorconfig +14 -14
- package/.eslintrc +47 -47
- package/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/context.d.ts +109 -109
- package/dist/context.js +378 -378
- package/dist/cps.d.ts +14 -15
- package/dist/cps.js +213 -220
- package/dist/handler/error.d.ts +6 -6
- package/dist/handler/error.js +35 -35
- package/dist/handler/output.d.ts +6 -6
- package/dist/handler/output.js +35 -35
- package/dist/handler/resource.d.ts +12 -12
- package/dist/handler/resource.js +51 -51
- package/dist/handler-container.d.ts +14 -14
- package/dist/handler-container.js +16 -16
- package/dist/index.d.ts +44 -44
- package/dist/index.js +129 -129
- package/dist/interpreter.d.ts +39 -39
- package/dist/interpreter.js +292 -292
- package/dist/intrinsics-container.d.ts +7 -7
- package/dist/intrinsics-container.js +19 -19
- package/dist/operations/assign.d.ts +13 -13
- package/dist/operations/assign.js +111 -111
- package/dist/operations/block.d.ts +12 -12
- package/dist/operations/block.js +108 -108
- package/dist/operations/break.d.ts +10 -10
- package/dist/operations/break.js +41 -41
- package/dist/operations/call.d.ts +13 -13
- package/dist/operations/call.js +124 -124
- package/dist/operations/chunk.d.ts +12 -12
- package/dist/operations/chunk.js +85 -85
- package/dist/operations/continue.d.ts +10 -10
- package/dist/operations/continue.js +41 -41
- package/dist/operations/debugger-statement.d.ts +10 -10
- package/dist/operations/debugger-statement.js +39 -39
- package/dist/operations/evaluate.d.ts +39 -39
- package/dist/operations/evaluate.js +366 -366
- package/dist/operations/for.d.ts +15 -15
- package/dist/operations/for.js +152 -146
- package/dist/operations/function-reference.d.ts +12 -12
- package/dist/operations/function-reference.js +103 -103
- package/dist/operations/function.d.ts +12 -12
- package/dist/operations/function.js +198 -198
- package/dist/operations/if-statement.d.ts +19 -19
- package/dist/operations/if-statement.js +181 -181
- package/dist/operations/import.d.ts +14 -14
- package/dist/operations/import.js +115 -115
- package/dist/operations/include.d.ts +13 -13
- package/dist/operations/include.js +95 -95
- package/dist/operations/list.d.ts +11 -11
- package/dist/operations/list.js +111 -111
- package/dist/operations/literal.d.ts +11 -11
- package/dist/operations/literal.js +58 -58
- package/dist/operations/map.d.ts +11 -11
- package/dist/operations/map.js +167 -167
- package/dist/operations/negated-binary.d.ts +11 -11
- package/dist/operations/negated-binary.js +109 -109
- package/dist/operations/new-instance.d.ts +11 -11
- package/dist/operations/new-instance.js +100 -100
- package/dist/operations/noop.d.ts +9 -9
- package/dist/operations/noop.js +36 -36
- package/dist/operations/not.d.ts +11 -11
- package/dist/operations/not.js +96 -96
- package/dist/operations/operation.d.ts +13 -13
- package/dist/operations/operation.js +11 -11
- package/dist/operations/reference.d.ts +9 -9
- package/dist/operations/reference.js +37 -37
- package/dist/operations/resolve.d.ts +38 -38
- package/dist/operations/resolve.js +330 -330
- package/dist/operations/return.d.ts +11 -11
- package/dist/operations/return.js +107 -107
- package/dist/operations/while.d.ts +13 -13
- package/dist/operations/while.js +136 -129
- package/dist/types/boolean.d.ts +11 -11
- package/dist/types/boolean.js +46 -46
- package/dist/types/default.d.ts +11 -11
- package/dist/types/default.js +20 -20
- package/dist/types/function.d.ts +32 -32
- package/dist/types/function.js +174 -174
- package/dist/types/generics.d.ts +17 -17
- package/dist/types/generics.js +40 -40
- package/dist/types/interface.d.ts +22 -22
- package/dist/types/interface.js +102 -102
- package/dist/types/list.d.ts +31 -31
- package/dist/types/list.js +227 -227
- package/dist/types/map.d.ts +30 -30
- package/dist/types/map.js +224 -224
- package/dist/types/nil.d.ts +9 -9
- package/dist/types/nil.js +44 -44
- package/dist/types/number.d.ts +11 -11
- package/dist/types/number.js +46 -46
- package/dist/types/string.d.ts +33 -33
- package/dist/types/string.js +149 -149
- package/dist/utils/path.d.ts +10 -10
- package/dist/utils/path.js +59 -59
- package/package.json +58 -58
package/dist/handler/output.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DefaultOutputHandler = exports.OutputHandler = void 0;
|
|
19
|
-
var OutputHandler = /** @class */ (function () {
|
|
20
|
-
function OutputHandler() {
|
|
21
|
-
}
|
|
22
|
-
return OutputHandler;
|
|
23
|
-
}());
|
|
24
|
-
exports.OutputHandler = OutputHandler;
|
|
25
|
-
var DefaultOutputHandler = /** @class */ (function (_super) {
|
|
26
|
-
__extends(DefaultOutputHandler, _super);
|
|
27
|
-
function DefaultOutputHandler() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
30
|
-
DefaultOutputHandler.prototype.print = function (message) {
|
|
31
|
-
console.log(message);
|
|
32
|
-
};
|
|
33
|
-
return DefaultOutputHandler;
|
|
34
|
-
}(OutputHandler));
|
|
35
|
-
exports.DefaultOutputHandler = DefaultOutputHandler;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DefaultOutputHandler = exports.OutputHandler = void 0;
|
|
19
|
+
var OutputHandler = /** @class */ (function () {
|
|
20
|
+
function OutputHandler() {
|
|
21
|
+
}
|
|
22
|
+
return OutputHandler;
|
|
23
|
+
}());
|
|
24
|
+
exports.OutputHandler = OutputHandler;
|
|
25
|
+
var DefaultOutputHandler = /** @class */ (function (_super) {
|
|
26
|
+
__extends(DefaultOutputHandler, _super);
|
|
27
|
+
function DefaultOutputHandler() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
DefaultOutputHandler.prototype.print = function (message) {
|
|
31
|
+
console.log(message);
|
|
32
|
+
};
|
|
33
|
+
return DefaultOutputHandler;
|
|
34
|
+
}(OutputHandler));
|
|
35
|
+
exports.DefaultOutputHandler = DefaultOutputHandler;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare abstract class ResourceHandler {
|
|
2
|
-
abstract getTargetRelativeTo(source: string, target: string): Promise<string>;
|
|
3
|
-
abstract has(target: string): Promise<boolean>;
|
|
4
|
-
abstract get(target: string): Promise<string>;
|
|
5
|
-
abstract resolve(target: string): Promise<string>;
|
|
6
|
-
}
|
|
7
|
-
export declare class DefaultResourceHandler extends ResourceHandler {
|
|
8
|
-
getTargetRelativeTo(source: string, target: string): Promise<string>;
|
|
9
|
-
has(target: string): Promise<boolean>;
|
|
10
|
-
get(target: string): Promise<string>;
|
|
11
|
-
resolve(target: string): Promise<string>;
|
|
12
|
-
}
|
|
1
|
+
export declare abstract class ResourceHandler {
|
|
2
|
+
abstract getTargetRelativeTo(source: string, target: string): Promise<string>;
|
|
3
|
+
abstract has(target: string): Promise<boolean>;
|
|
4
|
+
abstract get(target: string): Promise<string>;
|
|
5
|
+
abstract resolve(target: string): Promise<string>;
|
|
6
|
+
}
|
|
7
|
+
export declare class DefaultResourceHandler extends ResourceHandler {
|
|
8
|
+
getTargetRelativeTo(source: string, target: string): Promise<string>;
|
|
9
|
+
has(target: string): Promise<boolean>;
|
|
10
|
+
get(target: string): Promise<string>;
|
|
11
|
+
resolve(target: string): Promise<string>;
|
|
12
|
+
}
|
package/dist/handler/resource.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.DefaultResourceHandler = exports.ResourceHandler = void 0;
|
|
22
|
-
var fs_1 = __importDefault(require("fs"));
|
|
23
|
-
var path_1 = __importDefault(require("path"));
|
|
24
|
-
var ResourceHandler = /** @class */ (function () {
|
|
25
|
-
function ResourceHandler() {
|
|
26
|
-
}
|
|
27
|
-
return ResourceHandler;
|
|
28
|
-
}());
|
|
29
|
-
exports.ResourceHandler = ResourceHandler;
|
|
30
|
-
var DefaultResourceHandler = /** @class */ (function (_super) {
|
|
31
|
-
__extends(DefaultResourceHandler, _super);
|
|
32
|
-
function DefaultResourceHandler() {
|
|
33
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
|
-
}
|
|
35
|
-
DefaultResourceHandler.prototype.getTargetRelativeTo = function (source, target) {
|
|
36
|
-
var base = path_1.default.resolve(source, '..');
|
|
37
|
-
var result = path_1.default.resolve(base, target);
|
|
38
|
-
return Promise.resolve(fs_1.default.existsSync(result) ? result : result + '.src');
|
|
39
|
-
};
|
|
40
|
-
DefaultResourceHandler.prototype.has = function (target) {
|
|
41
|
-
return Promise.resolve(fs_1.default.existsSync(target));
|
|
42
|
-
};
|
|
43
|
-
DefaultResourceHandler.prototype.get = function (target) {
|
|
44
|
-
return Promise.resolve(fs_1.default.readFileSync(target, 'utf8'));
|
|
45
|
-
};
|
|
46
|
-
DefaultResourceHandler.prototype.resolve = function (target) {
|
|
47
|
-
return Promise.resolve(path_1.default.resolve(target));
|
|
48
|
-
};
|
|
49
|
-
return DefaultResourceHandler;
|
|
50
|
-
}(ResourceHandler));
|
|
51
|
-
exports.DefaultResourceHandler = DefaultResourceHandler;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.DefaultResourceHandler = exports.ResourceHandler = void 0;
|
|
22
|
+
var fs_1 = __importDefault(require("fs"));
|
|
23
|
+
var path_1 = __importDefault(require("path"));
|
|
24
|
+
var ResourceHandler = /** @class */ (function () {
|
|
25
|
+
function ResourceHandler() {
|
|
26
|
+
}
|
|
27
|
+
return ResourceHandler;
|
|
28
|
+
}());
|
|
29
|
+
exports.ResourceHandler = ResourceHandler;
|
|
30
|
+
var DefaultResourceHandler = /** @class */ (function (_super) {
|
|
31
|
+
__extends(DefaultResourceHandler, _super);
|
|
32
|
+
function DefaultResourceHandler() {
|
|
33
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
|
+
}
|
|
35
|
+
DefaultResourceHandler.prototype.getTargetRelativeTo = function (source, target) {
|
|
36
|
+
var base = path_1.default.resolve(source, '..');
|
|
37
|
+
var result = path_1.default.resolve(base, target);
|
|
38
|
+
return Promise.resolve(fs_1.default.existsSync(result) ? result : result + '.src');
|
|
39
|
+
};
|
|
40
|
+
DefaultResourceHandler.prototype.has = function (target) {
|
|
41
|
+
return Promise.resolve(fs_1.default.existsSync(target));
|
|
42
|
+
};
|
|
43
|
+
DefaultResourceHandler.prototype.get = function (target) {
|
|
44
|
+
return Promise.resolve(fs_1.default.readFileSync(target, 'utf8'));
|
|
45
|
+
};
|
|
46
|
+
DefaultResourceHandler.prototype.resolve = function (target) {
|
|
47
|
+
return Promise.resolve(path_1.default.resolve(target));
|
|
48
|
+
};
|
|
49
|
+
return DefaultResourceHandler;
|
|
50
|
+
}(ResourceHandler));
|
|
51
|
+
exports.DefaultResourceHandler = DefaultResourceHandler;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ErrorHandler } from './handler/error';
|
|
2
|
-
import { OutputHandler } from './handler/output';
|
|
3
|
-
import { ResourceHandler } from './handler/resource';
|
|
4
|
-
export interface HandlerContainerOptions {
|
|
5
|
-
resourceHandler?: ResourceHandler;
|
|
6
|
-
outputHandler?: OutputHandler;
|
|
7
|
-
errorHandler?: ErrorHandler;
|
|
8
|
-
}
|
|
9
|
-
export default class HandlerContainer {
|
|
10
|
-
readonly resourceHandler: ResourceHandler;
|
|
11
|
-
readonly outputHandler: OutputHandler;
|
|
12
|
-
readonly errorHandler: ErrorHandler;
|
|
13
|
-
constructor(options?: HandlerContainerOptions);
|
|
14
|
-
}
|
|
1
|
+
import { ErrorHandler } from './handler/error';
|
|
2
|
+
import { OutputHandler } from './handler/output';
|
|
3
|
+
import { ResourceHandler } from './handler/resource';
|
|
4
|
+
export interface HandlerContainerOptions {
|
|
5
|
+
resourceHandler?: ResourceHandler;
|
|
6
|
+
outputHandler?: OutputHandler;
|
|
7
|
+
errorHandler?: ErrorHandler;
|
|
8
|
+
}
|
|
9
|
+
export default class HandlerContainer {
|
|
10
|
+
readonly resourceHandler: ResourceHandler;
|
|
11
|
+
readonly outputHandler: OutputHandler;
|
|
12
|
+
readonly errorHandler: ErrorHandler;
|
|
13
|
+
constructor(options?: HandlerContainerOptions);
|
|
14
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var error_1 = require("./handler/error");
|
|
4
|
-
var output_1 = require("./handler/output");
|
|
5
|
-
var resource_1 = require("./handler/resource");
|
|
6
|
-
var HandlerContainer = /** @class */ (function () {
|
|
7
|
-
function HandlerContainer(options) {
|
|
8
|
-
if (options === void 0) { options = {}; }
|
|
9
|
-
this.resourceHandler =
|
|
10
|
-
(options === null || options === void 0 ? void 0 : options.resourceHandler) || new resource_1.DefaultResourceHandler();
|
|
11
|
-
this.outputHandler = (options === null || options === void 0 ? void 0 : options.outputHandler) || new output_1.DefaultOutputHandler();
|
|
12
|
-
this.errorHandler = (options === null || options === void 0 ? void 0 : options.errorHandler) || new error_1.DefaultErrorHandler();
|
|
13
|
-
}
|
|
14
|
-
return HandlerContainer;
|
|
15
|
-
}());
|
|
16
|
-
exports.default = HandlerContainer;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var error_1 = require("./handler/error");
|
|
4
|
+
var output_1 = require("./handler/output");
|
|
5
|
+
var resource_1 = require("./handler/resource");
|
|
6
|
+
var HandlerContainer = /** @class */ (function () {
|
|
7
|
+
function HandlerContainer(options) {
|
|
8
|
+
if (options === void 0) { options = {}; }
|
|
9
|
+
this.resourceHandler =
|
|
10
|
+
(options === null || options === void 0 ? void 0 : options.resourceHandler) || new resource_1.DefaultResourceHandler();
|
|
11
|
+
this.outputHandler = (options === null || options === void 0 ? void 0 : options.outputHandler) || new output_1.DefaultOutputHandler();
|
|
12
|
+
this.errorHandler = (options === null || options === void 0 ? void 0 : options.errorHandler) || new error_1.DefaultErrorHandler();
|
|
13
|
+
}
|
|
14
|
+
return HandlerContainer;
|
|
15
|
+
}());
|
|
16
|
+
exports.default = HandlerContainer;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export { ContextForkOptions, ContextOptions, ContextState, ContextType, Debugger, FunctionState, LoopState, default as OperationContext, ProcessState, Scope } from './context';
|
|
2
|
-
export { default as CPS, CPSContext } from './cps';
|
|
3
|
-
export { DefaultErrorHandler, ErrorHandler } from './handler/error';
|
|
4
|
-
export { DefaultOutputHandler, OutputHandler } from './handler/output';
|
|
5
|
-
export { DefaultResourceHandler, ResourceHandler } from './handler/resource';
|
|
6
|
-
export { default as HandlerContainer } from './handler-container';
|
|
7
|
-
export { default as Interpreter, InterpreterOptions } from './interpreter';
|
|
8
|
-
export { default as IntrinsicsContainer } from './intrinsics-container';
|
|
9
|
-
export { default as Assign } from './operations/assign';
|
|
10
|
-
export { default as Block, IsEOL } from './operations/block';
|
|
11
|
-
export { default as Break } from './operations/break';
|
|
12
|
-
export { default as Call } from './operations/call';
|
|
13
|
-
export { default as Chunk } from './operations/chunk';
|
|
14
|
-
export { default as Continue } from './operations/continue';
|
|
15
|
-
export { default as DebuggerStatement } from './operations/debugger-statement';
|
|
16
|
-
export { default as Evaluate, GenericProcessorHandler, handle, handleBoolean, handleList, handleMap, handleNumber, handleString, ListProcessorHandler, MapProcessorHandler, NumberProcessorHandler, ProcessorHandler, ProcessorHandlerFunction, StringProcessorHandler } from './operations/evaluate';
|
|
17
|
-
export { default as For } from './operations/for';
|
|
18
|
-
export { default as FunctionOpertion } from './operations/function';
|
|
19
|
-
export { Clause, default as IfStatement } from './operations/if-statement';
|
|
20
|
-
export { default as Import } from './operations/import';
|
|
21
|
-
export { default as Include } from './operations/include';
|
|
22
|
-
export { default as List } from './operations/list';
|
|
23
|
-
export { default as Literal } from './operations/literal';
|
|
24
|
-
export { default as MapOperation } from './operations/map';
|
|
25
|
-
export { default as NegatedBinary } from './operations/negated-binary';
|
|
26
|
-
export { default as NewInstance } from './operations/new-instance';
|
|
27
|
-
export { default as Noop } from './operations/noop';
|
|
28
|
-
export { default as Not } from './operations/not';
|
|
29
|
-
export { CPSVisit, default as Operation } from './operations/operation';
|
|
30
|
-
export { default as Reference } from './operations/reference';
|
|
31
|
-
export { IdentifierSegment, IndexSegment, OperationSegment, default as Resolve, ResolveResult, Segment } from './operations/resolve';
|
|
32
|
-
export { default as Return } from './operations/return';
|
|
33
|
-
export { default as While } from './operations/while';
|
|
34
|
-
export { default as CustomBoolean } from './types/boolean';
|
|
35
|
-
export { default as Defaults } from './types/default';
|
|
36
|
-
export { Argument, Callback, default as CustomFunction } from './types/function';
|
|
37
|
-
export { CustomObject, CustomValue, CustomValueWithIntrinsics } from './types/generics';
|
|
38
|
-
export { default as CustomInterface, CustomInterfaceIterator } from './types/interface';
|
|
39
|
-
export { default as CustomList, CustomListIterator } from './types/list';
|
|
40
|
-
export { default as CustomMap, CustomMapIterator } from './types/map';
|
|
41
|
-
export { default as CustomNil } from './types/nil';
|
|
42
|
-
export { default as CustomNumber } from './types/number';
|
|
43
|
-
export { default as CustomString, CustomStringIterator } from './types/string';
|
|
44
|
-
export { default as Path } from './utils/path';
|
|
1
|
+
export { ContextForkOptions, ContextOptions, ContextState, ContextType, Debugger, FunctionState, LoopState, default as OperationContext, ProcessState, Scope } from './context';
|
|
2
|
+
export { default as CPS, CPSContext } from './cps';
|
|
3
|
+
export { DefaultErrorHandler, ErrorHandler } from './handler/error';
|
|
4
|
+
export { DefaultOutputHandler, OutputHandler } from './handler/output';
|
|
5
|
+
export { DefaultResourceHandler, ResourceHandler } from './handler/resource';
|
|
6
|
+
export { default as HandlerContainer } from './handler-container';
|
|
7
|
+
export { default as Interpreter, InterpreterOptions } from './interpreter';
|
|
8
|
+
export { default as IntrinsicsContainer } from './intrinsics-container';
|
|
9
|
+
export { default as Assign } from './operations/assign';
|
|
10
|
+
export { default as Block, IsEOL } from './operations/block';
|
|
11
|
+
export { default as Break } from './operations/break';
|
|
12
|
+
export { default as Call } from './operations/call';
|
|
13
|
+
export { default as Chunk } from './operations/chunk';
|
|
14
|
+
export { default as Continue } from './operations/continue';
|
|
15
|
+
export { default as DebuggerStatement } from './operations/debugger-statement';
|
|
16
|
+
export { default as Evaluate, GenericProcessorHandler, handle, handleBoolean, handleList, handleMap, handleNumber, handleString, ListProcessorHandler, MapProcessorHandler, NumberProcessorHandler, ProcessorHandler, ProcessorHandlerFunction, StringProcessorHandler } from './operations/evaluate';
|
|
17
|
+
export { default as For } from './operations/for';
|
|
18
|
+
export { default as FunctionOpertion } from './operations/function';
|
|
19
|
+
export { Clause, default as IfStatement } from './operations/if-statement';
|
|
20
|
+
export { default as Import } from './operations/import';
|
|
21
|
+
export { default as Include } from './operations/include';
|
|
22
|
+
export { default as List } from './operations/list';
|
|
23
|
+
export { default as Literal } from './operations/literal';
|
|
24
|
+
export { default as MapOperation } from './operations/map';
|
|
25
|
+
export { default as NegatedBinary } from './operations/negated-binary';
|
|
26
|
+
export { default as NewInstance } from './operations/new-instance';
|
|
27
|
+
export { default as Noop } from './operations/noop';
|
|
28
|
+
export { default as Not } from './operations/not';
|
|
29
|
+
export { CPSVisit, default as Operation } from './operations/operation';
|
|
30
|
+
export { default as Reference } from './operations/reference';
|
|
31
|
+
export { IdentifierSegment, IndexSegment, OperationSegment, default as Resolve, ResolveResult, Segment } from './operations/resolve';
|
|
32
|
+
export { default as Return } from './operations/return';
|
|
33
|
+
export { default as While } from './operations/while';
|
|
34
|
+
export { default as CustomBoolean } from './types/boolean';
|
|
35
|
+
export { default as Defaults } from './types/default';
|
|
36
|
+
export { Argument, Callback, default as CustomFunction } from './types/function';
|
|
37
|
+
export { CustomObject, CustomValue, CustomValueWithIntrinsics } from './types/generics';
|
|
38
|
+
export { default as CustomInterface, CustomInterfaceIterator } from './types/interface';
|
|
39
|
+
export { default as CustomList, CustomListIterator } from './types/list';
|
|
40
|
+
export { default as CustomMap, CustomMapIterator } from './types/map';
|
|
41
|
+
export { default as CustomNil } from './types/nil';
|
|
42
|
+
export { default as CustomNumber } from './types/number';
|
|
43
|
+
export { default as CustomString, CustomStringIterator } from './types/string';
|
|
44
|
+
export { default as Path } from './utils/path';
|