File: README.md

package info (click to toggle)
golang-github-antonmedv-expr 1.8.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,524 kB
  • sloc: makefile: 6
file content (33 lines) | stat: -rw-r--r-- 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Expr Debugger

## Install

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

## Usage

Print ast of program.

```bash
echo '1 + 2' | exe -ast
```

Disassemble bytecode to human readable format.

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

Run expression.

```bash
echo '2**8' | exe -run
```

Start interactive debugger.

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