On Thu, May 31, 2007 at 01:04:47AM +0200, Luca Torella wrote: > and so what's the meaning of all those files in > libraries/haskell-src/Languag/Haskell?
Just what you thought - two almost equal haskell parsers. The one in haskell-src is rather less featureful however; getting it to parse 2+3*3 correctly is a daunting task to many #haskellers at least. Probably using the GHC API would be a better idea, once they manage to document it. > Where can i find some documentation about the parser of the GHC? The Commentary: http://hackage.haskell.org/trac/ghc/wiki/Commentary > 2007/5/31, Stefan O'Rear <[EMAIL PROTECTED]>: > > > >On Wed, May 30, 2007 at 07:24:49PM +0200, Luca Torella wrote: > >> Hi, i've just downloaded the GHC code from the darcs repository and > >> i'd like to learn how GHC parse the haskell code to use it in the > >> next stages of the compilation. > >> > >> I started digging into the code, since i didn't found a good document > >> to read about it. I know that the parser is generated through Happy, > >> but I'd like more information. If you know a good document that i can > >> read to start understanding better the code, it's well welcome. > >> > >> Moreover, digging into the code, I found something like two almost > >> equal haskell code parser... one in compiler/parser/ and one in > >> libraries/haskell-src/Language/Haskell... which one is the one used > >> by GHC? > > > >The first. > > > >Stefan > > _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
