summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/types.h b/types.h
index f8a45d0..07d9bfb 100644
--- a/types.h
+++ b/types.h
@@ -274,6 +274,8 @@ typedef enum {
KW_LT,
KW_GE,
KW_GT,
+ KW_ANDAND,
+ KW_OROR,
KW_PLUS,
KW_MINUS,
KW_ASTERISK,
@@ -328,7 +330,7 @@ typedef enum {
static const char *const keywords[KW_COUNT] = {
";", ":", ",", "(", ")", "{", "}", "[", "]", "==",
"+=", "-=", "*=", "/=", "%=",
- "!=", "<=", "<", ">=", ">",
+ "!=", "<=", "<", ">=", ">", "&&", "||",
"+", "-", "*", "!", "&", "/", "%", "..", ".",
"=",
"if", "elif", "else", "while", "for", "return", "break",
@@ -339,6 +341,7 @@ static const char *const keywords[KW_COUNT] = {
"typeof", "sizeof", "alignof", "null"
};
+
typedef enum {
NUM_LITERAL_INT,
NUM_LITERAL_FLOAT
@@ -614,7 +617,9 @@ typedef enum {
BINARY_EQ,
BINARY_NE,
BINARY_AT_INDEX, /* e.g. x[i] */
- BINARY_DOT
+ BINARY_DOT,
+ BINARY_AND, /* && */
+ BINARY_OR /* || */
} BinaryOp;
typedef struct CallExpr {