This website requires JavaScript.
Explore
Help
Sign In
anoma
/
juvix
Watch
1
Star
1
Fork
0
You've already forked juvix
mirror of
https://github.com/anoma/juvix.git
synced
2025-01-05 22:46:08 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
6908ca9440
juvix
/
tests
/
positive
/
MiniC
/
ExportNameArgs
/
Input.juvix
9 lines
85 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Export all functions with alpha numeric names from entrypoint module (#1425) * 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
2022-08-01 13:53:19 +03:00
module Input;
open import Stdlib.Prelude;
remove ≔ from the language and replace it by := (#1563) * remove ≔ from the language and replace it by := * revert accidental changes in juvix input mode * update stdlib submodule * rename ℕ by Nat in the tests and examples * fix shell tests
2022-09-30 03:55:32 +03:00
fun : Nat → Nat;
fun _ := three;
Export all functions with alpha numeric names from entrypoint module (#1425) * 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
2022-08-01 13:53:19 +03:00
end;
Reference in New Issue
Copy Permalink