@elaraai/east 0.0.1-beta.16 → 0.0.1-beta.18
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/src/compile.d.ts +7 -1
- package/dist/src/compile.d.ts.map +1 -1
- package/dist/src/compile.js +198 -173
- package/dist/src/compile.js.map +1 -1
- package/dist/src/eastir.d.ts.map +1 -1
- package/dist/src/eastir.js +21 -5
- package/dist/src/eastir.js.map +1 -1
- package/dist/src/expr/function.d.ts +9 -2
- package/dist/src/expr/function.d.ts.map +1 -1
- package/dist/src/expr/function.js.map +1 -1
- package/dist/src/expr/types.d.ts +6 -6
- package/dist/src/expr/types.d.ts.map +1 -1
- package/dist/src/serialization/beast2.d.ts +39 -3
- package/dist/src/serialization/beast2.d.ts.map +1 -1
- package/dist/src/serialization/beast2.js +128 -14
- package/dist/src/serialization/beast2.js.map +1 -1
- package/dist/src/serialization/index.d.ts +1 -1
- package/dist/src/serialization/index.d.ts.map +1 -1
- package/dist/src/serialization/index.js +1 -1
- package/dist/src/serialization/index.js.map +1 -1
- package/package.json +1 -1
package/dist/src/compile.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type IR } from "./ir.js";
|
|
2
2
|
import { isTypeValueEqual, type EastTypeValue } from "./type_of_type.js";
|
|
3
3
|
import type { AnalyzedIR } from "./analyze.js";
|
|
4
|
+
import type { PlatformFunction } from "./platform.js";
|
|
4
5
|
export { isTypeValueEqual };
|
|
5
6
|
export declare const printTypeValue: (type: EastTypeValue) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Symbol used to attach source IR to compiled functions.
|
|
9
|
+
* This enables serialization of free functions (functions with no captures).
|
|
10
|
+
*/
|
|
11
|
+
export declare const EAST_IR_SYMBOL: unique symbol;
|
|
6
12
|
/** @internal An exception throw for the purpose of early function return */
|
|
7
13
|
export declare class ReturnException {
|
|
8
14
|
value: any;
|
|
@@ -16,7 +22,7 @@ export declare class ReturnException {
|
|
|
16
22
|
*
|
|
17
23
|
* @internal
|
|
18
24
|
*/
|
|
19
|
-
export declare function compile_internal(ir: AnalyzedIR, ctx: Record<string, EastTypeValue>, platform: Record<string, (...args: any[]) => any>, asyncPlatformFns: Set<string>, fresh_ctx?: boolean, compilingNodes?: Set<IR>): (ctx: Record<string, any>) => any;
|
|
25
|
+
export declare function compile_internal(ir: AnalyzedIR, ctx: Record<string, EastTypeValue>, platform: Record<string, (...args: any[]) => any>, asyncPlatformFns: Set<string>, platformDef: PlatformFunction[], fresh_ctx?: boolean, compilingNodes?: Set<IR>): (ctx: Record<string, any>) => any;
|
|
20
26
|
/** @internal */
|
|
21
27
|
export declare function applyTypeParameters(t: EastTypeValue | string, params: Map<string, EastTypeValue>): EastTypeValue;
|
|
22
28
|
//# sourceMappingURL=compile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/compile.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAA0C,MAAM,SAAS,CAAC;AAY1E,OAAO,EAAqB,gBAAgB,EAAE,KAAK,aAAa,EAA+E,MAAM,mBAAmB,CAAC;AACzK,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/compile.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAA0C,MAAM,SAAS,CAAC;AAY1E,OAAO,EAAqB,gBAAgB,EAAE,KAAK,aAAa,EAA+E,MAAM,mBAAmB,CAAC;AACzK,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,eAAO,MAAM,cAAc,EAAkC,CAAC,IAAI,EAAE,aAAa,KAAK,MAAM,CAAC;AAE7F;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