← All docs

readline() — internals

Compiler internals for readline(): lowering path, type checks, and runtime helpers.

readline() — internals

Where it lives

Lowering notes

  • Lowers readline(prompt?) by optionally writing a prompt and reading stdin.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fgets
  • __rt_vd_write

Signature summary

function readline(string $prompt = null): mixed

What the type checker enforces

  • Arity: takes 0–1 arguments (1 optional).

Eval interpreter (magician)

Cross-references