Skip to content

REPL

Start the REPL by running the interpreter without a source file:

Terminal window
./build/interpreter

The REPL is useful for:

  • quick expression checks
  • small runtime experiments
  • trying built-in functions
  • validating simple syntax without creating a file

The frontend currently rejects @import(...) in interactive mode. Use a real .kel file when the experiment depends on source modules or native packages.

Switch to a file when you need:

  • imports
  • multi-file examples
  • package usage
  • anything you want to keep under version control