summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-04-14 20:09:18 +1200
committerDavid Phillips <david@sighup.nz>2019-08-03 12:43:46 +1200
commit9d0452db9e2117dd51abd681d271083347676219 (patch)
treed2686cb4371620ab9b12cf0715437ae729b19c7d /lex.c
parent3bf3b2a80ef21ac1ac2e43d07b1680432d66cbaf (diff)
downloadtoy-cpu-assembler-9d0452db9e2117dd51abd681d271083347676219.tar.xz
More unused code removal
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lex.c b/lex.c
index 41b65c5..a642ea0 100644
--- a/lex.c
+++ b/lex.c
@@ -263,10 +263,6 @@ static int lex_misc(struct token *t) {
if (get_keyword(t->s_val, NULL) == 0)
t->type = TOKEN_KEYWORD;
-// for (j = 0; j < sizeof(keywords)/sizeof(*keywords); j++)
-// if (strcmp(t->s_val, keywords[j]) == 0)
-// t->type = TOKEN_KEYWORD;
-
t->span = i - column;
column = i;
/* skip over colon, but don't have included it in the name */