diff options
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 { |