From b8db294d0c843084a20cd7b6c2f087ba6edce530 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sat, 25 Apr 2026 19:14:55 -0400 Subject: microscript: rename zilch to nada --- uscript/lex.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'uscript/lex.c') diff --git a/uscript/lex.c b/uscript/lex.c index b940cd4..84c038e 100644 --- a/uscript/lex.c +++ b/uscript/lex.c @@ -104,7 +104,7 @@ struct token create_token(struct lexer *lex, u16 token_kind) tok.len = (int)(lex->head - lex->base); tok.line = lex->line; tok.col = lex->col - tok.len; - tok.val = create_zilch(); + tok.val = create_nada(); return tok; } @@ -117,7 +117,7 @@ struct token err_token(struct lexer *lex, const char *msg) tok.len = (int)strlen(msg); tok.line = lex->line; tok.col = lex->col; - tok.val = create_zilch(); + tok.val = create_nada(); return tok; } @@ -192,7 +192,7 @@ struct token ident_token(struct lexer *lex) else if (match_kw(lex, "loop")) kind = TOKEN_LOOP; else if (match_kw(lex, "nada")) - kind = TOKEN_ZILCH; + kind = TOKEN_NADA; else if (match_kw(lex, "next")) kind = TOKEN_NEXT; else if (match_kw(lex, "not")) @@ -203,8 +203,6 @@ struct token ident_token(struct lexer *lex) kind = TOKEN_RET; else if (match_kw(lex, "true")) kind = TOKEN_TRUE; - else if (match_kw(lex, "zilch")) - kind = TOKEN_ZILCH; return create_token(lex, kind); } -- cgit v1.3-2-g0d8e