From bcd6021b752ca4edff05448e7991c5f2eb9c0c55 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Tue, 14 Apr 2026 17:09:40 -0400 Subject: microscript: remove mod keyword --- uscript/lex.c | 2 -- uscript/lex.h | 1 - uscript/parser.c | 1 - 3 files changed, 4 deletions(-) (limited to 'uscript') diff --git a/uscript/lex.c b/uscript/lex.c index b89537d..a25bb86 100644 --- a/uscript/lex.c +++ b/uscript/lex.c @@ -173,8 +173,6 @@ struct token ident_token(struct lexer *lex) kind = TOKEN_ELSE; else if (match_kw(lex, "loop")) kind = TOKEN_LOOP; - else if (match_kw(lex, "mod")) - kind = TOKEN_MOD; else if (match_kw(lex, "true")) kind = TOKEN_TRUE; else if (match_kw(lex, "false")) diff --git a/uscript/lex.h b/uscript/lex.h index 191997d..4e448ed 100644 --- a/uscript/lex.h +++ b/uscript/lex.h @@ -25,7 +25,6 @@ _(LOOP) \ _(LTEQL) \ _(MINUS_EQL) \ - _(MOD) \ _(MOD_EQL) \ _(MULT_EQL) \ _(NEQL) \ diff --git a/uscript/parser.c b/uscript/parser.c index 043249e..d3f1432 100644 --- a/uscript/parser.c +++ b/uscript/parser.c @@ -540,7 +540,6 @@ struct expr expressions[] = { [TOKEN_LOOP] = {NULL, NULL, PREC_NONE}, [TOKEN_LTEQL] = {NULL, parse_binary, PREC_COMP}, [TOKEN_MINUS_EQL] = {NULL, NULL, PREC_NONE}, - [TOKEN_MOD] = {NULL, NULL, PREC_NONE}, [TOKEN_MOD_EQL] = {NULL, NULL, PREC_NONE}, [TOKEN_MULT_EQL] = {NULL, NULL, PREC_NONE}, [TOKEN_NEQL] = {NULL, parse_binary, PREC_EQL}, -- cgit v1.3-2-g0d8e