rexlang-cli 3.9.1

Rex: A strongly-typed, pure, implicitly parallel functional programming language
Documentation

Rex CLI (rex)

This crate provides the rex command-line interface.

It is a thin wrapper around the core pipeline:

rexlang-lexerrexlang-parserrexlang-typesystemrexlang-engine

Usage

Run a .rex file:

cargo run -p rex -- run rex/examples/record_update.rex

Run inline code:

cargo run -p rex -- run -c 'map ((*) 2) [1, 2, 3]'

Inspect compiler output:

  • --emit-ast: print the parsed AST as JSON and exit
  • --emit-type (alias: --type): print the inferred type as JSON and exit

REPL

cargo run -p rex -- repl