syntax-example Example application using syntax, a library for abstract syntax descriptions.
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly . Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Example application using syntax, a library for abstract syntax descriptions.
The code:
Example input:
(\f->
(\x
-> f ((x) x)) (\x
-> f (x x)
)
(\x -> "test")
(\y -> y +2.0e13))
Example output:
Abs "f" (App (App (App (Abs "x" (App (Var "f") (App (Var "x") (Var "x")))) (Abs "x" (App (Var "f") (App (Var "x") (Var "x"))))) (Abs "x" (Lit (LitStr "test")))) (Abs "y" (App (Var "y") (Lit (LitNum 2.0e13)))))
\f -> (\x -> f (x x)) (\x -> f (x x)) (\x -> "test") (\y -> y 2.0e13)
Stackage is a service provided by the
Haskell Foundation
│ Originally developed by
FP Complete