type2/examples/arithmetics
2022-03-20 21:46:49 +01:00
..
arithmetics.tp2 [mod] example:arithmetics 2022-03-20 21:46:49 +01:00
eval [mod] example:arithmetics 2022-03-20 21:46:49 +01:00
readme.md [mod] example:arithmetics 2022-03-20 21:46:49 +01:00

Usage

  • cat examples/arithmetics/arithmetics.tp2 | tools/conv > /tmp/arithmetics.tp2.json
  • echo '2+3' | build/type2 /tmp/arithmetics.tp2.json
  • echo '(2+3)*5' | build/type2 /tmp/arithmetics.tp2.json | examples/arithmetics/eval