mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Expr Debugger
Install
go get github.com/antonmedv/expr/cmd/exprdbg
Usage
Print ast of program.
echo '1 + 2' | exprdbg -ast
Disassemble bytecode to human-readable format.
echo 'map(0..9, {# * 2})' | exprdbg -bytecode
Run expression.
echo '2**8' | exprdbg -run
Start interactive debugger.
echo 'all(1..3, {# > 0})' | exprdbg -debug
