Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 389 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 389 Bytes

EXpr Executor

Install

go get github.com/antonmedv/expr/cmd/exe

Usage

Print ast of program.

echo '1 + 2' | exe -ast

Disassemble bytecode to human readable format.

echo 'map(0..9, {# * 2})' | exe -bytecode

Run expression.

echo '2**8' | exe -run

Start interactive debugger.

echo 'all(1..3, {# > 0})' | exe -debug