Fwd: Parsing integers [was: Re: [Haskell-cafe] help]

2007-12-09 Thread Tim Chevalier
t; String -> [(Expr, Expr, String)] parseBinaryOp op str = let (tokenF,e1,op,e2,tokenB) = I am not sure how to go about separating the string for how I need it using my other functiuons. Ryan ________ > Date: Sun, 9 Dec 2007 13:07:23 -0800 > From: [

Parsing integers [was: Re: [Haskell-cafe] help]

2007-12-09 Thread Tim Chevalier
On 12/9/07, Ryan Bloor <[EMAIL PROTECTED]> wrote: > > hi > > I have a function parseInt... which needs an error guard for when the input > is not an Int. > > parseInt :: Parser > parseInt [] = [] > parseInt xs = let (digits, rest) = span isDigit (removeSpace xs) > in [(EInt (read di