
15 Mar
2005
15 Mar
'05
7:31 a.m.
On Tue, 15 Mar 2005, Nicola Whitehead wrote:
Hi folks,
I have a parser problem. I have a basic calculator program (Graham Hutton's from Nottingham) which contains the following code:
-- Define a parser to handle the input expr :: Parser Int expr = do t <- term do symbol "+" e <- expr return (t + e) +++ return t
I assume that the nested 'do' (before 'symbol') is too much.