type2/examples/arithmetics/readme.md

6 lines
195 B
Markdown
Raw Permalink Normal View History

2022-03-20 21:46:49 +01:00
## Usage
2025-09-23 20:55:48 +02:00
- `cat arithmetics.tp2 | ../../tools/convert > /tmp/arithmetics.tp2.json`
- `echo '2+3' | type2 /tmp/arithmetics.tp2.json`
- `echo '(2+3)*5' | type2 /tmp/arithmetics.tp2.json | ./eval`