aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/src/c_lexer.flex
diff options
context:
space:
mode:
Diffstat (limited to 'c_parser/src/c_lexer.flex')
-rw-r--r--c_parser/src/c_lexer.flex8
1 files changed, 6 insertions, 2 deletions
diff --git a/c_parser/src/c_lexer.flex b/c_parser/src/c_lexer.flex
index 59a48e7..5723e38 100644
--- a/c_parser/src/c_lexer.flex
+++ b/c_parser/src/c_lexer.flex
@@ -44,11 +44,15 @@ const|volatile { return T_TYPE_QUAL; }
[;] { return T_SC; }
[=] { return T_EQ; }
+[=][=] { return T_EQUALITY; }
[,] { return T_CMA; }
[(] { return T_LRB; }
[)] { return T_RRB; }
-[{] { return T_LCB; }
-[}] { return T_RCB; }
+[{] { return T_LCB; }
+[}] { return T_RCB; }
+
+if { return T_IF; }
+else { return T_ELSE; }
({HEXCONSTANT}|{OCTALCONSTANT}|{DECIMALCONSTANT}){INTEGERSUFFIX}? { return T_INT_CONST; }