Commit 465e29dd authored by Guillaume Charifi's avatar Guillaume Charifi

compiler/lexer: Add BM_TOK_EOF.

parent 7d7603e0
......@@ -53,6 +53,7 @@ const wchar_t *debug_token_type(enum bm_token_type type)
CASE_WSTR(BM_TOK_ELLIPSIS);
CASE_WSTR(BM_TOK_ELSE);
CASE_WSTR(BM_TOK_ENUM);
CASE_WSTR(BM_TOK_EOF);
CASE_WSTR(BM_TOK_EXTENDS);
CASE_WSTR(BM_TOK_FALSE);
CASE_WSTR(BM_TOK_FINAL);
......
......@@ -424,6 +424,7 @@ struct token_handler token_handlers[] = {
{ 0, L"...", match_simple_keyword }, /* BM_TOK_ELLIPSIS */
{ 0, L"else", match_isolated_keyword }, /* BM_TOK_ELSE */
{ 0, L"enum", match_isolated_keyword }, /* BM_TOK_ENUM */
{ 0, L"", NULL }, /* BM_TOK_EOF */
{ 0, L"extends", match_isolated_keyword }, /* BM_TOK_EXTENDS */
{ 0, L"false", match_isolated_keyword }, /* BM_TOK_FALSE */
{ 0, L"final", match_isolated_keyword }, /* BM_TOK_FINAL */
......
......@@ -49,6 +49,7 @@ enum bm_token_type
BM_TOK_ELLIPSIS,
BM_TOK_ELSE,
BM_TOK_ENUM,
BM_TOK_EOF,
BM_TOK_EXTENDS,
BM_TOK_FALSE,
BM_TOK_FINAL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment