GHC Lexer

Simon Peyton-Jones simonpj at microsoft.com
Mon Oct 20 13:14:33 EDT 2003


LexCore is the lexer for "ExternalCore". 
http://www.haskell.org/ghc/docs/papers/core.ps.gz

 For your purposes, you can ignore it.

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org
[mailto:glasgow-haskell-users-
| bounces at haskell.org] On Behalf Of Steffen Mazanek
| Sent: 15 October 2003 13:45
| To: glasgow-haskell-users at haskell.org
| Subject: GHC Lexer
| 
| Hello,
| 
| to add a new keyword, say "struct" to
| the GHC, I have added ITstruct to data
| type Token in module Lex.lhs. Further
| on I have adapted ghcExtensionKeywordsFM.
| Is this already sufficient for lexing?
| In LexCore there is a function lexKeyword
| without a comment. It is called by lexer
| if the first character is %. What does this
| mean?
| 
| Thank you,
| Steffen
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users




More information about the Glasgow-haskell-users mailing list