Parsing GHC Core

Lennart Kolmodin kolmodin at dtek.chalmers.se
Thu Mar 8 12:16:36 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Mitchell wrote:
> Hi,
> 
> I would like to parse GHC Core to an abstract syntax tree, as the old
> GHC Core library used to allow the user to do. I do not want to depend
> on the GHC API (too big), but don't mind depending on a small and
> separately available .cabal'd package. I also don't mind copying a few
> modules into my program. The types are of no interest to me, if that
> makes it any easier
> 
> Does anyone have the code/library to do this sitting around?

I belive Aarne Ranta wrote a parser for some Core language of GHC 5 a
couple of years ago. Um... 2003. It seems to be part of the bnfc[1]
tarball as an example. Perhaps you can use that somehow?

[1] http://www.cs.chalmers.se/~markus/BNFC/

Cheers,
  Lennart Kolmodin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8ET04txYG4KUCuERAmmoAJ4jto4N+d9uEBhE7Z/+fofhTqGePwCgm023
dpCTk9bHmGIXVm5xYuiDQDc=
=XEXw
-----END PGP SIGNATURE-----


More information about the Glasgow-haskell-users mailing list