parser

Luca Torella lucatorella at gmail.com
Wed May 30 13:24:49 EDT 2007


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?

Thanks in advance,
Luca.



More information about the Cvs-ghc mailing list