diff options
Diffstat (limited to 'c_compiler/src/c_lexer.flex')
-rw-r--r-- | c_compiler/src/c_lexer.flex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c_compiler/src/c_lexer.flex b/c_compiler/src/c_lexer.flex index 716e1ac..6f0262e 100644 --- a/c_compiler/src/c_lexer.flex +++ b/c_compiler/src/c_lexer.flex @@ -55,8 +55,8 @@ ALL . [|] { return T_OR; } [\^] { return T_XOR; } [&] { return T_AND; } -[=][=] { return T_EQUALITY_OP; } -[!][=] { return T_EQUALITY_OP; } +[=][=] { yylval.string = new std::string(yytext); return T_EQUALITY_OP; } +[!][=] { yylval.string = new std::string(yytext); return T_EQUALITY_OP; } ([<>][=])|[<>] { return T_REL_OP; } [<>][<>] { return T_SHIFT_OP; } [*] { yylval.string = new std::string(yytext); return T_MULT; } |