diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-18 18:58:41 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-18 18:58:41 +0100 |
| commit | 65f079ebc474f9decc7afb222630c04b4da32690 (patch) | |
| tree | 789058f2ed95b8cf4433445f169435af1cc6707c /src/tokenizer.cpp | |
| parent | d16aa794921efd3c8e752645f3e5f922abc3aee8 (diff) | |
Remove `atomic`, `++`, and `--`
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 4c66f17a2..53e71a3c3 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -55,8 +55,8 @@ TOKEN_KIND(Token__AssignOpEnd, "_AssignOpEnd"), \ TOKEN_KIND(Token_ArrowRight, "->"), \ TOKEN_KIND(Token_ArrowLeft, "<-"), \ TOKEN_KIND(Token_DoubleArrowRight, "=>"), \ - TOKEN_KIND(Token_Inc, "++"), \ - TOKEN_KIND(Token_Dec, "--"), \ +/* TOKEN_KIND(Token_Inc, "++"), */ \ +/* TOKEN_KIND(Token_Dec, "--"), */ \ TOKEN_KIND(Token_Undef, "---"), \ \ TOKEN_KIND(Token__ComparisonBegin, "_ComparisonBegin"), \ @@ -126,7 +126,6 @@ TOKEN_KIND(Token__KeywordBegin, "_KeywordBegin"), \ TOKEN_KIND(Token_asm, "asm"), \ TOKEN_KIND(Token_yield, "yield"), \ TOKEN_KIND(Token_await, "await"), \ - TOKEN_KIND(Token_atomic, "atomic"), \ TOKEN_KIND(Token__KeywordEnd, "_KeywordEnd"), \ TOKEN_KIND(Token_Count, "") @@ -929,7 +928,8 @@ Token tokenizer_get_token(Tokenizer *t) { break; case '~': token.kind = token_kind_variant2(t, Token_Xor, Token_XorEq); break; case '!': token.kind = token_kind_variant2(t, Token_Not, Token_NotEq); break; - case '+': token.kind = token_kind_variant3(t, Token_Add, Token_AddEq, '+', Token_Inc); break; + // case '+': token.kind = token_kind_variant3(t, Token_Add, Token_AddEq, '+', Token_Inc); break; + case '+': token.kind = token_kind_variant2(t, Token_Add, Token_AddEq); break; case '-': token.kind = Token_Sub; if (t->curr_rune == '=') { @@ -937,7 +937,7 @@ Token tokenizer_get_token(Tokenizer *t) { token.kind = Token_SubEq; } else if (t->curr_rune == '-') { advance_to_next_rune(t); - token.kind = Token_Dec; + token.kind = Token_Invalid; if (t->curr_rune == '-') { advance_to_next_rune(t); token.kind = Token_Undef; |