Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /trunk/src/parser/diderot.lex
ViewVC logotype

Diff of /trunk/src/parser/diderot.lex

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

revision 35, Thu Feb 11 01:04:20 2010 UTC revision 40, Wed Mar 3 14:51:38 2010 UTC
# Line 113  Line 113 
113  <INITIAL> "#"           => (T.HASH);  <INITIAL> "#"           => (T.HASH);
114  <INITIAL> "!"           => (T.BANG);  <INITIAL> "!"           => (T.BANG);
115  <INITIAL> "="           => (T.OP_eq);  <INITIAL> "="           => (T.OP_eq);
116    <INITIAL> "|"           => (T.BAR);
117    <INITIAL> ".."          => (T.DOTDOT);
118    
119  <INITIAL> {id}          => (Keywords.idToken yytext);  <INITIAL> {id}          => (Keywords.idToken yytext);
120    
121  <INITIAL> {num}         => (T.POSINT(valOf (IntInf.fromString yytext)));  <INITIAL> {num}         => (T.INT(valOf (IntInf.fromString yytext)));
122  <INITIAL> "-"{num}      => (T.NEGINT(valOf (IntInf.fromString yytext)));  <INITIAL> {num}"."{num}([eE][+-]?{num})?
 <INITIAL> "-"?{num}"."{num}([eE][+-]?{num})?  
123                          => (mkFloat yysubstr);                          => (mkFloat yysubstr);
124  <INITIAL> {ws}          => (skip ());  <INITIAL> {ws}          => (skip ());
125    

Legend:
Removed from v.35  
changed lines
  Added in v.40

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