From b0b23acf887bec28b5ef8d0dfe448c4228ee0eb3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 11 Sep 2024 13:55:41 -0400 Subject: Rename "Nil"->"Null" for consistency --- parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index b0717f8c..e33b9ef2 100644 --- a/parse.c +++ b/parse.c @@ -1468,12 +1468,12 @@ PARSER(parse_lambda) { return NewAST(ctx->file, start, pos, Lambda, .id=ctx->next_lambda_id++, .args=args, .body=body); } -PARSER(parse_nil) { +PARSER(parse_null) { const char *start = pos; if (!match(&pos, "!")) return NULL; type_ast_t *type = parse_type(ctx, pos); if (!type) return NULL; - return NewAST(ctx->file, start, type->end, Nil, .type=type); + return NewAST(ctx->file, start, type->end, Null, .type=type); } PARSER(parse_var) { @@ -1488,7 +1488,7 @@ PARSER(parse_term_no_suffix) { ast_t *term = NULL; (void)( false - || (term=parse_nil(ctx, pos)) + || (term=parse_null(ctx, pos)) || (term=parse_num(ctx, pos)) || (term=parse_int(ctx, pos)) || (term=parse_negative(ctx, pos)) -- cgit v1.2.3