howl-0.1.0.0: A small Wolfram Language interpreter and symbolic rewriting library
Safe HaskellNone
LanguageGHC2021

Howl.Expr

Description

Expression types, conversions, syntax patterns, and pretty-printing.

This module exports the core APIs for constructing, inspecting, and rendering Howl expressions. Compared to Howl, it exposes a larger collection of expression patterns and lower-level expression utilities.

The expression patterns exported by this module are bidirectional pattern synonyms for symbol expressions such as Plus, List, and Rule. For example, you can construct expressions using them like:

  • Plus :@ Seq.fromList [toExpr 1, "x"] represents the Wolfram Language expression 1 + x
  • Rule :@ Seq.fromList ["x", toExpr 3] represents the Wolfram Language expression x -> 3

Documentation