Skip to content

Commit

Permalink
feat(lexer): full support for tokenizing type-casting
Browse files Browse the repository at this point in the history
  • Loading branch information
pacifiquem committed Dec 11, 2023
1 parent 25ac041 commit ffeda5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/headers/lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef enum {
TOKEN_TANGAZA_AMAKURU, TOKEN_INJIZA_AMAKURU, TOKEN_KOMEZA, TOKEN_HAGARARA,
TOKEN_UBWOKO, TOKEN_ERROR, TOKEN_KIN_HAGARARA, TOKEN_REKA,
TOKEN_SOMA_INYANDIKO, TOKEN_ANDIKA_INYANDIKO, TOKEN_KUVUGURURA_INYANDIKO,
TOKEN_SISITEMU,
TOKEN_SISITEMU, TOKEN_IJAMBO,
TOKEN_EOF
} TokenType;

Expand Down
1 change: 1 addition & 0 deletions src/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Token scanIdentifierOrKeyword() {
if (strcmp(lexeme, "nanone_niba") == 0) return makeTokenWithLexeme(TOKEN_NANONE_NIBA, lexeme);
if (strcmp(lexeme, "umubare") == 0) return makeTokenWithLexeme(TOKEN_UMUBARE, lexeme);
if (strcmp(lexeme, "umubare_wibice") == 0) return makeTokenWithLexeme(TOKEN_UMUBARE_WIBICE, lexeme);
if (strcmp(lexeme, "ijambo") == 0) return makeTokenWithLexeme(TOKEN_IJAMBO, lexeme);
if (strcmp(lexeme, "niba_byanze") == 0) return makeTokenWithLexeme(TOKEN_NIBA_BYANZE, lexeme);
if (strcmp(lexeme, "subiramo") == 0) return makeTokenWithLexeme(TOKEN_SUBIRAMO, lexeme);
if (strcmp(lexeme, "tanga") == 0) return makeTokenWithLexeme(TOKEN_TANGA, lexeme);
Expand Down

0 comments on commit ffeda5f

Please sign in to comment.