Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /ckit/trunk/src/parser/grammar/c.lex
ViewVC logotype

Diff of /ckit/trunk/src/parser/grammar/c.lex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3743, Fri Jul 13 12:38:55 2012 UTC revision 3744, Fri Jul 27 17:17:11 2012 UTC
# Line 124  Line 124 
124  id      = [_A-Za-z][_A-Za-z0-9]*;  id      = [_A-Za-z][_A-Za-z0-9]*;
125  octdigit        = [0-7];  octdigit        = [0-7];
126  hexdigit        = [0-9a-fA-F];  hexdigit        = [0-9a-fA-F];
127  hexnum  = 0[xX]{hexdigit}+[uUlL]?[uUlL]?;  integersuffix   = ([uU][lL]?[lL]?|[lL][lL]?[uU]?);
128  octnum  = 0{octdigit}+[uUlL]?[uUlL]?;  hexnum  = 0[xX]{hexdigit}+{integersuffix}?;
129  decnum  = (0|([1-9][0-9]*))[uUlL]?[uUlL]?;  octnum  = 0{octdigit}+{integersuffix}?;
130  realnum = (([0-9]+(\.[0-9]+)?)|(\.[0-9]+))([eE][+-]?[0-9]+)?[lL]?;  decnum  = (0|([1-9][0-9]*)){integersuffix}?;
131    floatingsuffix  = [flFL];
132    realnum = (([0-9]+(\.[0-9]+)?)|(\.[0-9]+))([eE][+-]?[0-9]+)?{floatingsuffix}?;
133  ws      = ("\012"|[\t\ ])*;  ws      = ("\012"|[\t\ ])*;
134    
135  simplecharconst  = '[^\n\\]';  simplecharconst  = '[^\n\\]';

Legend:
Removed from v.3743  
changed lines
  Added in v.3744

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0