← All docs
token_get_all() - internals
Compiler internals for token_get_all(): lowering path, type checks, and runtime helpers.
token_get_all() - internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_data.rs - Lowering:
src/tokenizer_prelude.rs(token_get_all) - Function symbol:
token_get_all()
Lowering notes
- Implemented by the compiler-injected tokenizer prelude.
Semantic descriptor
Shared contract implemented by an injected elephc-PHP prelude.
EIR and runtime boundary
Implemented by an injected elephc-PHP prelude.
Signature summary
function token_get_all(string $code, int $flags = 0): array
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/tokenizer/token_get_all.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
dynamic-language-surface. - Dispatch hooks:
direct,values