diff options
Diffstat (limited to '')
-rw-r--r-- | src/system.flex (renamed from src/system.l) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/system.l b/src/system.flex index 80c66a2..e5da5d2 100644 --- a/src/system.l +++ b/src/system.flex @@ -1,3 +1,4 @@ +/* Tokens */ %option c++ %option noyywrap %option debug @@ -7,7 +8,7 @@ %{ #include <iostream> #include "system.tab.hh" -#include "system.loc.hh" +#include "location.h" #undef YY_DECL # define YY_DECL template<> parser::symbol_type Lexer<parser::symbol_type>::yynlex () @@ -20,8 +21,8 @@ digit [0-9] num {digit}+ frc {digit}+\.{digit}+ %% -{frc} { return parser::make_FRC(atof(yytext_ptr)); } -{num} { return parser::make_NUM(atoi(yytext_ptr)); } +{frc} { return parser::make_FLOAT(atof(yytext_ptr)); } +{num} { return parser::make_ULONG(atoi(yytext_ptr)); } [\n] { return parser::make_BREAK();} [\t] { return parser::make_BLANK();} |