From 1e3fb8a2c0cca385d65c52679411b118b5fb4641 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Nov 2024 16:18:21 -0500 Subject: Rename "NULL" to "NONE" --- parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index bc25e89b..b1d9f739 100644 --- a/parse.c +++ b/parse.c @@ -53,7 +53,7 @@ int op_tightness[] = { static const char *keywords[] = { "yes", "xor", "while", "when", "use", "unless", "struct", "stop", "skip", "return", "or", "not", "no", "mod1", "mod", "pass", "lang", "inline", "in", "if", - "func", "for", "extern", "enum", "else", "do", "defer", "and", "_min_", "_max_", + "func", "for", "extern", "enum", "else", "do", "defer", "and", "NONE", "_min_", "_max_", NULL, }; @@ -1532,7 +1532,7 @@ PARSER(parse_lambda) { PARSER(parse_null) { const char *start = pos; - if (match_word(&pos, "NULL")) + if (match_word(&pos, "NONE")) return NewAST(ctx->file, start, pos, Null, .type=NULL); if (!match(&pos, "!")) return NULL; type_ast_t *type = parse_type(ctx, pos); -- cgit v1.2.3