Expand description
Shared builtin implementations for Tish.
Used by the compiled runtime (tishlang_runtime) and bytecode VM (tishlang_vm). The interpreter (tishlang_eval) implements builtins inline due to different Value and native signatures.
Modules§
- array
- Array builtin methods.
- construct
newlowering for non-JS targets:construct(callee, args)approximates JS[[Construct]]. Browser-exact behavior remains ontish compile --target js.- globals
- Global builtin functions with signature (args: &Value) -> Value.
- helpers
- Common helper functions used across builtin implementations.
- math
- Math builtin functions.
- object
- Object builtin methods.
- string
- String builtin methods.
Enums§
- Value
- Runtime value for Tish programs. Used by both interpreter and compiled code.