[Haskell-cafe] Happy Parser problem

2010-12-31 Thread Aaron Gray
I am trying to get a grammar where keywords are also valid identifiers. Been messing round with the following Happy grammar :- %token 'let' { TokenIdent let } 'in'{ TokenIdent in } ident { TokenIdent $$ } int { TokenInt $$ }

Re: [Haskell-cafe] Happy Parser problem

2010-12-31 Thread Aaron Gray
On 31 December 2010 13:21, Aaron Gray aaronngray.li...@gmail.com wrote: I am trying to get a grammar where keywords are also valid identifiers. Sorry working now ! Aaron Been messing round with the following Happy grammar :- %token 'let' { TokenIdent let } 'in'