Re: [Haskell-cafe] Parsing Haskell in Parsec

2011-06-16 Thread Johannes Waldmann
You may browse my source code (quite unpolished) ... updated locations: http://dfa.imn.htwk-leipzig.de/cgi-bin/gitweb.cgi?p=ws10-cb.git;a=summary git clone git://dfa.imn.htwk-leipzig.de/srv/git/ws10-cb ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Parsing Haskell in Parsec

2011-03-21 Thread Johannes Waldmann
Alex Rozenshteyn rpglover64 at gmail.com writes: as part of a larger project of porting http://www.cs.jhu.edu/~scott/pl/book/dist/ from ocaml to Haskell. Nice idea. I was using a similar approach (interpreters for various semantic domains) in a course on semantics(+ compilation). I modelled

Re: [Haskell-cafe] Parsing Haskell in Parsec

2011-03-21 Thread Alex Rozenshteyn
Thank you, everyone, for the suggestions. On Mon, Mar 21, 2011 at 12:28 PM, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: Alex Rozenshteyn rpglover64 at gmail.com writes: as part of a larger project of porting http://www.cs.jhu.edu/~scott/pl/book/dist/ from ocaml to Haskell.

Re: [Haskell-cafe] Parsing Haskell in Parsec

2011-03-20 Thread Stephen Tetley
If you get the old Parsec distribution from Daan Leijen's home page there are example parsers for Henk a small functional language and I think Mondrian (a bit large one). http://legacy.cs.uu.nl/daan/parsec.html ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Parsing Haskell in Parsec

2011-03-20 Thread Tom Nielsen
I'm writing the parser for a Haskell-like language in Parsec https://github.com/glutamate/baysig/blob/master/Baysig/Syntax/Parser.hs The hand-written lexer and layout resolution code is in the same directory. It has do-notation and custom infix declarations. Tom On Sun, Mar 20, 2011 at 5:25

[Haskell-cafe] Parsing Haskell in Parsec

2011-03-19 Thread Alex Rozenshteyn
I'm trying to write a parser for a small functional language in Parsec, as part of a larger project of porting thishttp://www.cs.jhu.edu/%7Escott/pl/book/dist/from ocaml to Haskell. I was wondering if there was a parser for Haskell written in Parsec that I could use as a reference. --