diff options
author | 2024-11-15 17:25:44 +0600 | |
---|---|---|
committer | 2024-11-15 17:25:44 +0600 | |
commit | 5a02f27098f62f4bfac015c2ed4023715a7d1c33 (patch) | |
tree | 683e7e70bcfc1153a4abb17e6f8dc1942a25258f /src/system.flex | |
parent | 2eb3342f0a09b23db4dbf3518778fe7379acccdf (diff) | |
download | log-parser-5a02f27098f62f4bfac015c2ed4023715a7d1c33.tar.gz log-parser-5a02f27098f62f4bfac015c2ed4023715a7d1c33.zip |
Use saner name for types and add location definition
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
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();} |