type2/examples/arithmetics
2025-09-23 20:55:48 +02: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] examples 2025-09-23 20:55:48 +02:00

Usage

  • 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