ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/mdParser/MDParser.g
(Generate patch)

Comparing trunk/OOPSE-4/src/mdParser/MDParser.g (file contents):
Revision 2469 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
Revision 2509 by tim, Wed Dec 14 18:02:28 2005 UTC

# Line 41 | Line 41 | tokens
41    ENDBLOCK;
42   }
43  
44 {
45    // Suppport C++-style single-line comments?
46 }
44  
45   mdfile  : (statement)*
46          ;
# Line 145 | Line 142 | signedNumber  : (PLUS! | MINUS^)?
142          ;
143  
144   protected
145 < signedNumber  : (PLUS! | MINUS^)?
145 > signedNumber  :  
146                  (intConst | floatConst)
147                ;
148                
# Line 209 | Line 206 | PLUS            : '+' ;
206   LCURLY          : '{' ;
207   RCURLY          : '}' ;
208  
212 PLUS            : '+' ;
213 MINUS           : '-' ;
209  
210   /*
211   EQUAL           : "==" ;
# Line 445 | Line 440 | Number
440    ;
441  
442   Number
443 <  :
443 >  :
444 >  ('+'|'-')?
445 >  (
446      ( (Digit)+ ('.' | 'e' | 'E' | 'd' | 'D' ) )=>
447      (Digit)+
448      ( '.' (Digit)* (Exponent)? {_ttype = FLOATONE;} //Zuo 3/12/01
# Line 478 | Line 475 | Number
475      (LongSuffix                //{_ttype = LongHexConst;}
476      |UnsignedSuffix            //{_ttype = UnsignedHexConst;}
477      )*                         {_ttype = HEXADECIMALINT;}  
478 +  )
479    ;
480  
481   ID

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines