Files
expr/cmd/exprdbg
2022-10-15 15:59:39 +02:00
..
2022-10-15 15:59:39 +02:00
wip
2022-10-15 13:37:07 +02:00
2022-10-15 15:59:39 +02:00
2022-10-07 22:42:01 +02:00

Expr Debugger

Screenshot

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