Sigbjorn Finne <[EMAIL PROTECTED]> reports:
> Jan 98 release of Hugs - precedence doesn't seem to be taken into
> account when parsing sections:
>
> Prelude> (+2*3)
> ERROR: Syntax error in expression (unexpected symbol "*")
> Prelude>
You're right - precedence is completely ignored. The relevant syntax rules
are:
| '(' pfxExp qop ')'
| '(' qop atomic ')'
These ought to be:
| '(' exp qop ')'
| '(' qop exp ')'
but I suspect this would trip up the code that rearranges expressions
according to fixity declarations.
I've added this to the bug list but have no immediate plans to fix it.
--
Alastair Reid Yale Haskell Project Hacker
[EMAIL PROTECTED] http://WWW.CS.Yale.EDU/homes/reid-alastair/