Skip to content

Language Reference

This reference documents the Nilakan language features implemented by the current interpreter.

  • Commit Loops covers init, while, primed assignment, staged updates, and acc_prime modes.
  • Program Structure covers file-level ordering, top-level forms, reserved names, and function scope.
  • Grammar And Status gives a compact grammar and lists the Python-like constructs Nilakan does not support.
  • Lexical Structure covers comments, indentation, literals, identifiers, separators, and line continuation.
  • Values And Types covers the runtime value model.
  • Expressions covers literals, operators, calls, indexing, and slicing.
  • Operators And Precedence gives the implemented precedence and associativity table.
  • Statements covers assignment, conditionals, effectful procedure calls, returns, and loop placement.
  • Functions covers definitions, positional and named calls, default parameters, scoping, and return rules.
  • Type Contracts covers supported annotation forms and runtime checks.
  • Error Handling covers err values, try, catch, and how Nilakan differs from Python exceptions.
  • Limits And Errors covers runtime limits and major static restrictions.
  • Open Work records the language’s design goal, current gaps, and planned direction.

For built-ins and methods, see the API Reference.