← All docs
sscanf() — internals
Compiler internals for sscanf(): lowering path, type checks, and runtime helpers.
sscanf() — internals
Where it lives
- Signature:
src/builtins/string/sscanf.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:180 (lower_sscanf) - Function symbol:
lower_sscanf()
Lowering notes
- Lowers
sscanf(string, format)into the shared scanner helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_sscanf__rt_str_split
Signature summary
function sscanf(string $string, string $format, ...$vars): array
What the type checker enforces
- Arity: takes exactly 2 arguments.
- Variadic: collects excess arguments into
$vars.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/formatting/sscanf.rs(eval_builtin!) - Dispatch hooks:
direct,values - Variadic: collects excess arguments into
$vars.