Changeset 2143
- Timestamp:
- 06/30/08 19:10:49 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ProjectFortress/src/com/sun/fortress/parser/DelimitedExpr.rats
r2142 r2143 118 118 case w Expr (w (Encloser / Op))? w do w CaseClauses (w CaseElse)? w end 119 119 { yyValue = syntaxError(createSpan(yyStart,yyCount), 120 "In a case expression, 'do' is used in stead of 'of'.");120 "In a case expression, 'do' is used incorrectly. Use 'of' instead."); 121 121 } 122 122 / case w most w a1:(Encloser / Op) w of w a2:CaseClauses w end … … 129 129 case w most w (Encloser / Op) w do w CaseClauses w end 130 130 { yyValue = syntaxError(createSpan(yyStart,yyCount), 131 "In an extremum expression, 'do' is used in stead of 'of'.");131 "In an extremum expression, 'do' is used incorrectly. Use 'of' instead."); 132 132 } 133 133 / typecase w a1:TypecaseBindings w of w a2:TypecaseClauses a3:(br CaseElse)? … … 140 140 typecase w TypecaseBindings w do w TypecaseClauses (br CaseElse)? w end 141 141 { yyValue = syntaxError(createSpan(yyStart,yyCount), 142 "In a typecase expression, 'do' is used in stead of 'of'.");142 "In a typecase expression, 'do' is used incorrectly. Use 'of' instead."); 143 143 } 144 144 / <TRY> try w a1:BlockElems a2:(w Catch)? a3:(w forbid w TraitTypes)?
