aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pc.l11
1 files changed, 11 insertions, 0 deletions
diff --git a/pc.l b/pc.l
index 15c6691..e744c4d 100644
--- a/pc.l
+++ b/pc.l
@@ -203,6 +203,17 @@ id [A-Za-z][A-Za-z0-9_]*
return RNUM;
}
+{number}[eE][+-]?{number} {
+ yylval.rval = atof(yytext);
+ debug_print(RNUM, &yylval);
+ return RNUM;
+}
+{number}.{number}[eE][+-]?{number} {
+ yylval.rval = atof(yytext);
+ debug_print(RNUM, &yylval);
+ return RNUM;
+}
+
{id} {
yylval.sval = strdup(yytext);
debug_print(ID, &yylval);