Changeset 2171

Show
Ignore:
Timestamp:
07/03/08 09:02:48 (3 months ago)
Author:
sukyoungryu
Message:

[parser] Deleted the error productions for missing 'end' from components and APIs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ProjectFortress/src/com/sun/fortress/parser/Compilation.rats

    r2141 r2171  
    109109       else 
    110110           yyValue = new Component(span, true, a2, a3, a4, a5); 
    111      } 
    112    / <ErrorProduction3> 
    113      (native w)? component w APIName (w Imports w semicolon?)? w 
    114      Exports w semicolon? (w Decls w semicolon?)? w 
    115      { yyValue = syntaxError(createSpan(yyStart,yyCount), 
    116                              "The \"end\" keyword is missing from a component definition."); 
    117111     }; 
    118112 
     
    131125       Span span = createSpan(yyStart,yyCount); 
    132126       yyValue = new Api(span, a1, a2, a3); 
    133      } 
    134    / <ErrorProduction2> 
    135      api w APIName (w Imports w semicolon?)? (w AbsDecls w semicolon?)? w 
    136      { yyValue = syntaxError(createSpan(yyStart,yyCount), 
    137                              "The \"end\" keyword is missing from an API definition."); 
    138127     }; 
    139128