Re: [Haskell] Alex question

2005-10-03 Thread robert dockins
Which wrapper are you using? I just recently did this for the monad wrapper. It looks a little like this: data Token = EOF | alexEOF = return EOF lexAll :: Alex [Token] lexAll = do x <- alexMonadScan case x of EOF -> [] _ -> lexAll >>= return . (

[Haskell] Alex question

2005-10-02 Thread Creighton Hogg
Hi, I've read through the documentation on Alex abit, but since I'm not the sharpest tool in the shed I'm not really seeing the obvious way to take the output file of Alex and make a program that will print out the list of tokens scanned from an input file. I had to do something like this this