basedpl

Command line

Home · Install · REPL

Expressions and files

-e evaluates one expression. Quote it to protect spaces and glyphs from the shell.

basedpl -e '+/⍳10'       # 55

Pass a UTF-8 APL file to run it as one source. Names persist throughout the file.

basedpl lesson.apl

Expressions display results; assignments are silent. Use ⎕← for explicit output. Diagnostics go to stderr and include source locations.

Pipes

With no arguments, piped input behaves like the REPL without prompts. Names persist between expressions.

printf 'v←⍳10\n+/v\n' | basedpl

- reads all stdin as one source before evaluation.

printf 'v←⍳10\n+/v\n' | basedpl -

Use actual glyphs in files, pipes and -e; backtick names are a REPL input method.

Other modes

Command Mode
basedpl Interactive REPL when connected to a terminal
basedpl --help Usage
basedpl --version Version
basedpl --json Persistent JSON-string requests
basedpl --worker Interruptible structured requests

See process interfaces for machine-readable output. Exit status: 0 success, 1 evaluation/I/O error, 2 invalid command arguments. Output produced before an error is retained.