[Haskell-cafe] Parser problem continued

Nicola Whitehead nicolaw at unak.is
Tue Mar 15 10:44:55 EST 2005


perhaps like this:

> expr = do t <- term
>           (do symbol "+"
>               e <- expr
>               return (t+e)
>           )
>           +++
>           (return t)
>
>
>although I think you may also want a 'try' before the first alternative.

No, that still gives the same undefined variable error. :(

Nik

Dr Nik Freydís Whitehead
University of Akureyri, Iceland
*********************************************************************
Having the moral high ground is good.
Having the moral high ground and an FGMP-15 is better.
*********************************************************************



More information about the Haskell-Cafe mailing list