summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-04-14 17:09:40 -0400
committeriamcheeseman <[email protected]>2026-04-14 17:09:40 -0400
commitbcd6021b752ca4edff05448e7991c5f2eb9c0c55 (patch)
tree1c3fdc1555488b8df049e5cf63b3432f5e89ed90
parenta99ea432154b1737490c887f3004024f01c254b1 (diff)
microscript: remove mod keyword
-rw-r--r--uscript/lex.c2
-rw-r--r--uscript/lex.h1
-rw-r--r--uscript/parser.c1
3 files changed, 0 insertions, 4 deletions
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},