@tsplc/compiler 0.5.4 → 0.5.6
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/bun-runtime.js +14 -2
- package/dist/bun-runtime.js.map +4 -4
- package/dist/codesys.js +46 -2
- package/dist/codesys.js.map +3 -3
- package/dist/collections.js +395 -0
- package/dist/collections.js.map +10 -0
- package/dist/elaborate-capture.js +64 -5
- package/dist/elaborate-capture.js.map +4 -4
- package/dist/index.js +5345 -1074
- package/dist/index.js.map +32 -25
- package/dist/ir.js +122 -1
- package/dist/ir.js.map +6 -6
- package/package.json +14 -9
- package/src/codesys/numeric.ts +61 -0
- package/src/frontend/control-flow.ts +752 -0
- package/src/frontend/coroutines.ts +171 -7
- package/src/frontend/elaborate/array-searches.ts +216 -0
- package/src/frontend/elaborate/assignments.ts +352 -0
- package/src/frontend/elaborate/calls.ts +488 -49
- package/src/frontend/elaborate/capture-protocol.ts +19 -0
- package/src/frontend/elaborate/capture.ts +82 -3
- package/src/frontend/elaborate/dialect.ts +118 -4
- package/src/frontend/elaborate/expressions.ts +927 -80
- package/src/frontend/elaborate/filtered-arrays.ts +607 -0
- package/src/frontend/elaborate/frame.ts +44 -1
- package/src/frontend/elaborate/generics.ts +137 -0
- package/src/frontend/elaborate/graph.ts +91 -0
- package/src/frontend/elaborate/imports.ts +14 -15
- package/src/frontend/elaborate/index.ts +30 -5
- package/src/frontend/elaborate/initializers.ts +15 -1
- package/src/frontend/elaborate/iterators.ts +1677 -0
- package/src/frontend/elaborate/layouts.ts +41 -19
- package/src/frontend/elaborate/model.ts +64 -8
- package/src/frontend/elaborate/references.ts +749 -0
- package/src/frontend/elaborate/specialize.ts +459 -29
- package/src/frontend/elaborate/statements.ts +552 -133
- package/src/frontend/elaborate/storage.ts +151 -10
- package/src/frontend/elaborate/values.ts +72 -0
- package/src/frontend/elaborate/writes.ts +302 -1
- package/src/frontend/intrinsics.ts +32 -0
- package/src/frontend/module-graph.ts +2 -1
- package/src/frontend/positions.ts +12 -5
- package/src/frontend/sdk.ts +7 -1
- package/src/frontend/typescript.ts +5 -1
- package/src/ir/core-model.ts +2 -6
- package/src/ir/fold.ts +30 -1
- package/src/ir/index.ts +5 -0
- package/src/ir/model.ts +53 -2
- package/src/ir/scalars.ts +126 -0
- package/src/runtime/.runtime-VaUSOu/server/router.ts +17 -0
- package/src/runtime/.runtime-VaUSOu/src/cell.ts +45 -0
- package/src/runtime/.runtime-VaUSOu/src/controller.ts +58 -0
- package/src/runtime/.runtime-VaUSOu/src/lane.ts +6 -0
- package/src/runtime/.runtime-VaUSOu/src/main.ts +11 -0
- package/src/runtime/.runtime-VaUSOu/src/services.ts +8 -0
- package/src/runtime/.runtime-VaUSOu/tsconfig.json +13 -0
- package/src/runtime/.runtime-VaUSOu/tsplc.config.ts +31 -0
- package/src/runtime/.runtime-ybIxYh/server/router.ts +17 -0
- package/src/runtime/.runtime-ybIxYh/src/cell.ts +45 -0
- package/src/runtime/.runtime-ybIxYh/src/controller.ts +58 -0
- package/src/runtime/.runtime-ybIxYh/src/lane.ts +6 -0
- package/src/runtime/.runtime-ybIxYh/src/main.ts +11 -0
- package/src/runtime/.runtime-ybIxYh/src/services.ts +8 -0
- package/src/runtime/.runtime-ybIxYh/tsconfig.json +13 -0
- package/src/runtime/.runtime-ybIxYh/tsplc.config.ts +31 -0
- package/stdlib/collections.ts +514 -0
- package/types/index.d.ts +18 -0
package/types/index.d.ts
CHANGED
|
@@ -55,6 +55,24 @@ export declare function saturatingMultiply<T extends number | bigint>(
|
|
|
55
55
|
): T;
|
|
56
56
|
export declare function div<T extends number | bigint>(left: T, right: T): T;
|
|
57
57
|
|
|
58
|
+
// Math on REAL or LREAL, named by the type argument. A result must be proved finite: sin, cos, tan
|
|
59
|
+
// and atan always are; the others need their operand's domain proved, as a constant or an integer
|
|
60
|
+
// converted exactly is.
|
|
61
|
+
export declare function sqrt<T extends number>(value: T): T;
|
|
62
|
+
export declare function ln<T extends number>(value: T): T;
|
|
63
|
+
export declare function log10<T extends number>(value: T): T;
|
|
64
|
+
export declare function exp<T extends number>(value: T): T;
|
|
65
|
+
export declare function sin<T extends number>(value: T): T;
|
|
66
|
+
export declare function cos<T extends number>(value: T): T;
|
|
67
|
+
export declare function tan<T extends number>(value: T): T;
|
|
68
|
+
export declare function asin<T extends number>(value: T): T;
|
|
69
|
+
export declare function acos<T extends number>(value: T): T;
|
|
70
|
+
export declare function atan<T extends number>(value: T): T;
|
|
71
|
+
/** Toward zero, keeping the floating type. */
|
|
72
|
+
export declare function trunc<T extends number>(value: T): T;
|
|
73
|
+
/** `base` to the power `exponent`, which must be a constant. */
|
|
74
|
+
export declare function expt<T extends number>(base: T, exponent: T): T;
|
|
75
|
+
|
|
58
76
|
// Capacity and bounds are compiler metadata, erased by the TypeScript checker.
|
|
59
77
|
export type FixedArray<T, _N extends number, _Lower extends number = 0> = T[];
|
|
60
78
|
export type STRING<_N extends number> = string;
|