Module builtins

Module builtins 

Source
Expand description

Built-in word signatures for Seq

Defines the stack effects for all runtime built-in operations.

Uses declarative macros to minimize boilerplate. The builtin! macro supports a Forth-like notation: (a Type1 Type2 -- a Type3) where:

  • a is the row variable (representing “rest of stack”)
  • Concrete types: Int, String, Float
  • Type variables: single uppercase letters like T, U, V

Functions§

builtin_doc
Get documentation for a built-in word
builtin_docs
Get all built-in word documentation (cached with LazyLock for performance)
builtin_signature
Get the stack effect signature for a built-in word
builtin_signatures
Get all built-in word signatures