Changes between Version 2 and Version 3 of DoAndIfThenElse


Ignore:
Timestamp:
Dec 8, 2005 5:37:07 AM (10 years ago)
Author:
john@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DoAndIfThenElse

    v2 v3  
    2626prevent the insertion of a closing `}`) that is closed by a matching `else`?
    2727
     28== Implementation ==
     29
     30This has been implemented in jhc by changing a single line in the parser, an equivalant change in the report should have the same effect.
     31
     32{{{
     33old:
     34  | 'if' exp 'then' exp 'else' exp { HsIf $2 $4 $6 }
     35new:
     36  | 'if' exp optsemi 'then' exp optsemi 'else' exp { HsIf $2 $5 $8 }
     37}}}
     38
     39so far, it has not caused any problems.
     40
    2841== References ==
    2942 * Somewhat related to NondecreasingIndentation