type2/examples/arithmetics
2026-09-18 10:29:39 +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] auf ivaldi umgestellt 2026-09-18 10:29:39 +02:00

Usage

  • cat arithmetics.tp2 | ../../misc/convert > /tmp/arithmetics.tp2.json
  • echo '2+3' | type2 /tmp/arithmetics.tp2.json
  • echo '(2+3)*5' | type2 /tmp/arithmetics.tp2.json | ./eval