diff options
| author | gingerBill <bill@gingerbill.org> | 2020-12-06 13:17:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-12-06 13:17:48 +0000 |
| commit | 98c8fde0989c455ae88cedf2622029510d2519fc (patch) | |
| tree | d5f2b574d415dc07f8ccc81617aa6c30a72ca171 /src/tokenizer.cpp | |
| parent | 1ac84b09a1e4ec24a35a3cabe3ba6235e3dacba7 (diff) | |
Remove unused tokens
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index bef82633f..0ef92eb21 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -52,8 +52,6 @@ TOKEN_KIND(Token__AssignOpBegin, ""), \ TOKEN_KIND(Token_CmpOrEq, "||="), \ TOKEN_KIND(Token__AssignOpEnd, ""), \ TOKEN_KIND(Token_ArrowRight, "->"), \ - TOKEN_KIND(Token_ArrowLeft, "<-"), \ - TOKEN_KIND(Token_DoubleArrowRight, "=>"), \ TOKEN_KIND(Token_Undef, "---"), \ \ TOKEN_KIND(Token__ComparisonBegin, ""), \ @@ -1160,10 +1158,7 @@ void tokenizer_get_token(Tokenizer *t, Token *token) { break; case '=': token->kind = Token_Eq; - if (t->curr_rune == '>') { - advance_to_next_rune(t); - token->kind = Token_DoubleArrowRight; - } else if (t->curr_rune == '=') { + if (t->curr_rune == '=') { advance_to_next_rune(t); token->kind = Token_CmpEq; } @@ -1259,10 +1254,7 @@ void tokenizer_get_token(Tokenizer *t, Token *token) { case '<': token->kind = Token_Lt; - if (t->curr_rune == '-') { - advance_to_next_rune(t); - token->kind = Token_ArrowLeft; - } else if (t->curr_rune == '=') { + if (t->curr_rune == '=') { token->kind = Token_LtEq; advance_to_next_rune(t); } else if (t->curr_rune == '<') { |