summaryrefslogtreecommitdiff
path: root/uscript/lex.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-04-25 19:14:55 -0400
committeriamcheeseman <[email protected]>2026-04-25 19:14:55 -0400
commitb8db294d0c843084a20cd7b6c2f087ba6edce530 (patch)
treee6e0e1ae19827f49c7500b3e563c20433a94f11f /uscript/lex.c
parentf328d3b2bea11f6b89bf4b3707205ecd8496b93d (diff)
microscript: rename zilch to nadaHEADmaster
Diffstat (limited to 'uscript/lex.c')
-rw-r--r--uscript/lex.c8
1 files changed, 3 insertions, 5 deletions
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);
}