On Wed, Oct 15, 2008 at 2:22 PM, Andrew Coppin <[EMAIL PROTECTED]> wrote: > So if "+" is not a valid token, but the user writes > x = 1; y = 2; z = 3 + z; w = 4; > then what my program receives back is "x = 1; y = 2; z = 3"
You said you expect one or more 'expression'. It looks as if your expression can optionally be terminated by semicolon? Can you demand semicolons at the ends of your expressions? Then, "z = 3" would not constitute a complete expression and an error would be raised. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
