syntax-example: Example application using syntax, a library for abstract syntax descriptions.

[ data, mit, program ] [ Propose Tags ]

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)
Versions 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0.0, 1.0.0.0
Dependencies attoparsec, base (==4.*), lens, scientific (>=0.3), semi-iso (>=1), syntax (>=1), syntax-attoparsec (>=1), syntax-printer (>=1), text [details]
License MIT
Copyright Paweł Nowak 2014
Author Paweł Nowak
Maintainer Paweł Nowak <pawel834@gmail.com>
Category Data
Source repo head: git clone git@github.com:Pawel834/syntax-example.git
Uploaded by pawel834 at Fri Dec 12 23:33:19 UTC 2014
Distributions NixOS:1.0.0.0
Executables syntax-example
Downloads 1583 total (12 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2014-12-21 [all 8 reports]
Hackage Matrix CI

Downloads

Maintainer's Corner

For package maintainers and hackage trustees