diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-16 22:52:40 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-16 22:52:40 +0000 |
commit | 392805699c8d411400901b8e3d7298f0f9198bb5 (patch) | |
tree | 2d724780d9e787d7e17211ce6181d395aae1fcaf /c_parser/src/c_lexer.flex | |
parent | 24d1547515ddeb03c6fcf7ae0162b0c397180a40 (diff) | |
download | Compiler-392805699c8d411400901b8e3d7298f0f9198bb5.tar.gz Compiler-392805699c8d411400901b8e3d7298f0f9198bb5.zip |
Changing ast and improving it
Diffstat (limited to 'c_parser/src/c_lexer.flex')
-rw-r--r-- | c_parser/src/c_lexer.flex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c_parser/src/c_lexer.flex b/c_parser/src/c_lexer.flex index ba19cd5..59a48e7 100644 --- a/c_parser/src/c_lexer.flex +++ b/c_parser/src/c_lexer.flex @@ -42,9 +42,9 @@ const|volatile { return T_TYPE_QUAL; } {IDENTIFIER} { yylval.string = new std::string(yytext); return T_IDENTIFIER; } -; { return T_SC; } -= { return T_EQ; } -, { return T_CMA; } +[;] { return T_SC; } +[=] { return T_EQ; } +[,] { return T_CMA; } [(] { return T_LRB; } [)] { return T_RRB; } [{] { return T_LCB; } |