mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 18:13:56 +03:00
433e882189
* Export all functions with alphanum names in entrypoint Set the export_name attribute on every function signature that has a fully alpha numeric name. * Adds a non-WASI target to compile command WASM libraries we want to run in the browser and in Anoma VM do not have access to the WASI runtime. For this usecase we need a target runtime that does not use the WASI runtime. A `wasi-` prefix is added to existing compile targets and introduce a new standalone target. This target does not have IO functions like `putStrLn` and `exit` calls `__builtin_trap` which corresponds to the `unreachable` WASM instruction. In the non-exhaustive case error a debug message is emitted to tell the user which function had the error. This is now abstracted to a `debug` function in the runtime which calls `putStrLn` in the case of WASI and is no-op in the case of non-WASI. Tests are added which check that exported names can be called with the correct name and result. * Moves walloc to a common directory
9 lines
86 B
Plaintext
9 lines
86 B
Plaintext
module Input;
|
||
|
||
open import Stdlib.Prelude;
|
||
|
||
fun : ℕ → ℕ;
|
||
fun _ ≔ three;
|
||
|
||
end;
|