Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Jun 25, 2024
1 parent 869bfc9 commit 5fc13ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lexer/lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ int real_lex(Lexer *l, Token *t) {
// First up, we can just end here.
if (in_string(init, single_char_tokens)) {
t->length = pos;
t->type = ttype_one_char(init);
t->type = _ttype_one_char(init);
return 0;
}

Expand All @@ -196,7 +196,7 @@ int real_lex(Lexer *l, Token *t) {
// We've ended!
ungetc(c, l->fp);
t->contents[pos] = '\0';
t->type = ttype_many_chars(t->contents);
t->type = _ttype_many_chars(t->contents);
t->length = pos;
return 0;
}
Expand Down Expand Up @@ -331,7 +331,6 @@ TokenType _ttype_one_char(char c) {
case '?':
return TT_QMARK;
default:
PRINT_ERROR("Token type for token '%c' not recognized", c);
return TT_NO_TOKEN;
}
}
Expand Down Expand Up @@ -521,7 +520,7 @@ TokenType ttype_from_string(const char *contents) {
}
}

return ttype_many_chars(contents);
return _ttype_many_chars(contents);
}

static const char *ttype_names[] = {
Expand Down

0 comments on commit 5fc13ba

Please sign in to comment.