simple-expr

Minimalistic toolkit for simple mathematical expression.

Version on this page:0.1.0.2
LTS Haskell 22.21:0.1.1.0
Stackage Nightly 2024-05-06:0.1.1.0
Latest on Hackage:0.1.1.0

See all snapshots simple-expr appears in

BSD-3-Clause licensed by Alexey Tochin
Maintained by [email protected]
This version can be pinned in stack with:simple-expr-0.1.0.2@sha256:b528d64471f900e03c6e60cb545e362be42eb053f650afdeff402393f45cd231,2855

Module documentation for 0.1.0.2

Used by 1 package in nightly-2023-05-31(full list with versions):

This is a minimalistic toolkit for simple mathematical expression developed for debug purposes similar to 'simple-reflect' package but based on slightly different principles. In particular, we use ordinary syntactic trees instead of turning them into strings. There is a primitive manipulation capability like

>>> simplify $ (x + 0) * 1 - x * (3 - 2)
0

Besides an expression visualization feature is also provided.

See tutorial for details.

Changes

Revision history for simple-expr

0.1.0.0 – 2023-05-12

  • Basic types SimpleExpr, Expr and instances for NumHask typeclasses.
  • Conversion to graphs from graphite package.
  • Visualization provided by graphviz.
  • Tutorial