diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 13:55:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 13:55:41 -0400 |
| commit | b0b23acf887bec28b5ef8d0dfe448c4228ee0eb3 (patch) | |
| tree | d2ad22c1850acd186ed1286bd6fa759cdea6487e /parse.c | |
| parent | 2c90750a3eed81d07f2e74acd9744de0b9853b11 (diff) | |
Rename "Nil"->"Null" for consistency
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |
