← All docs
system() — internals
Compiler internals for system(): lowering path, type checks, and runtime helpers.
system() — internals
Where it lives
- Signature:
src/builtins/system/system.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:706 (lower_system) - Function symbol:
lower_system()
Lowering notes
- Lowers
system(command)through libcsystem()and returns the compiler’s empty string result.
Runtime helpers
The following runtime helpers are referenced:
__rt_shell_exec
Signature summary
function system(string $command): string
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/network_env/system.rs(eval_builtin!) - Dispatch hooks:
direct,values