TK_STRING,
TK_BOOL,
+ TK_NULL,
TK_LEFT_PAREN,
TK_RIGHT_PAREN,
case TK_MULTILINE_COMMENT: return "MULTILINE_COMMENT";
case TK_STRING: return "STRING";
case TK_BOOL: return "BOOL";
+ case TK_NULL: return "NULL";
case TK_LEFT_PAREN: return "LEFT_PAREN";
case TK_RIGHT_PAREN: return "RIGHT_PAREN";
case TK_MINUS: return "MINUS";
t_out->type = (is_keyword(ident_sv) ? TK_KEYWORD : TK_IDENT);
if (sv_equals(ident_sv, SV("true")) || sv_equals(ident_sv, SV("false"))) {
t_out->type = TK_BOOL;
+ } else if (sv_equals(ident_sv, SV("null"))) {
+ t_out->type = TK_NULL;
}
if (DEBUG_PRINT) {
print_token(stdout, *t_out);