toilscript 0.1.0 → 0.1.1
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/README.md +2 -2
- package/bin/asinit.js +6 -6
- package/dist/asc.generated.d.ts +7 -2
- package/dist/asc.js +18 -1
- package/dist/asc.js.map +2 -2
- package/dist/importmap.json +2 -2
- package/dist/toilscript.generated.d.ts +7 -2
- package/dist/toilscript.js +24 -24
- package/dist/toilscript.js.map +3 -3
- package/dist/web.js +3 -3
- package/package.json +3 -3
- package/std/assembly/index.d.ts +1 -0
- package/std/assembly/toilscript.ts +16 -0
package/dist/importmap.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"imports": {
|
|
3
|
-
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
4
|
-
"toilscript/asc": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
3
|
+
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.1/dist/toilscript.js",
|
|
4
|
+
"toilscript/asc": "https://cdn.jsdelivr.net/npm/toilscript@0.1.1/dist/asc.js",
|
|
5
5
|
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
|
|
6
6
|
"long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
|
|
7
7
|
}
|
|
@@ -3173,6 +3173,8 @@ declare module "types:toilscript/src/program" {
|
|
|
3173
3173
|
elementsByDeclaration: Map<DeclarationStatement, DeclaredElement>;
|
|
3174
3174
|
/** Element instances by unique internal name. */
|
|
3175
3175
|
instancesByName: Map<string, Element>;
|
|
3176
|
+
/** Function decorated with `@main` (toil module entry point), if any. */
|
|
3177
|
+
mainFunction: FunctionPrototype | null;
|
|
3176
3178
|
/** Classes wrapping basic types like `i32`. */
|
|
3177
3179
|
wrapperClasses: Map<Type, Class>;
|
|
3178
3180
|
/** Managed classes contained in the program, by id. */
|
|
@@ -3487,7 +3489,9 @@ declare module "types:toilscript/src/program" {
|
|
|
3487
3489
|
/** Is compiled lazily. */
|
|
3488
3490
|
Lazy = 1024,
|
|
3489
3491
|
/** Is considered unsafe code. */
|
|
3490
|
-
Unsafe = 2048
|
|
3492
|
+
Unsafe = 2048,
|
|
3493
|
+
/** Is the toil module entry point (`@main`). */
|
|
3494
|
+
Main = 4096
|
|
3491
3495
|
}
|
|
3492
3496
|
export namespace DecoratorFlags {
|
|
3493
3497
|
/** Translates a decorator kind to the respective decorator flag. */
|
|
@@ -7702,7 +7706,8 @@ declare module "types:toilscript/src/ast" {
|
|
|
7702
7706
|
ExternalJs = 10,
|
|
7703
7707
|
Builtin = 11,
|
|
7704
7708
|
Lazy = 12,
|
|
7705
|
-
Unsafe = 13
|
|
7709
|
+
Unsafe = 13,
|
|
7710
|
+
Main = 14
|
|
7706
7711
|
}
|
|
7707
7712
|
export namespace DecoratorKind {
|
|
7708
7713
|
/** Returns the kind of the specified decorator name node. Defaults to {@link DecoratorKind.CUSTOM}. */
|