Commit 140e5b44 authored by Guillaume Charifi's avatar Guillaume Charifi

compiler/lexer: Recognize BM_TOK_IMPORT.

parent 56c8a9e1
......@@ -65,6 +65,7 @@ const wchar_t *debug_token_type(enum bm_token_type type)
CASE_WSTR(BM_TOK_IMM_INT);
CASE_WSTR(BM_TOK_IMM_STR);
CASE_WSTR(BM_TOK_IMPLEMENTS);
CASE_WSTR(BM_TOK_IMPORT);
CASE_WSTR(BM_TOK_INTERFACE);
CASE_WSTR(BM_TOK_LOOP);
CASE_WSTR(BM_TOK_MATCH);
......
......@@ -445,6 +445,7 @@ struct token_handler token_handlers[] = {
{ 0, BM_TOK_IMM_INT, L"", match_num },
{ 0, BM_TOK_IMM_STR, L"", match_str },
{ 0, BM_TOK_IMPLEMENTS, L"implements", match_isolated_keyword },
{ 0, BM_TOK_IMPORT, L"import", match_isolated_keyword },
{ 0, BM_TOK_INTERFACE, L"interface", match_isolated_keyword },
{ 0, BM_TOK_LOOP, L"loop", match_isolated_keyword },
{ 0, BM_TOK_MATCH, L"match", match_isolated_keyword },
......
......@@ -61,6 +61,7 @@ enum bm_token_type
BM_TOK_IMM_INT,
BM_TOK_IMM_STR,
BM_TOK_IMPLEMENTS,
BM_TOK_IMPORT,
BM_TOK_INTERFACE,
BM_TOK_LOOP,
BM_TOK_MATCH,
......
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