diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-07-31 23:01:42 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-07-31 23:01:42 +0100 |
| commit | 70f6282f41cdd7f500159116c520140364f6739a (patch) | |
| tree | 577ba99ea8249236dc4a70695a1e94ef26ddb340 /src/tokenizer.cpp | |
| parent | 776dc0e8f1aa506ae0096c78ff10565e56c175e7 (diff) | |
Variable declaration and assign, unary operators
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 1f0fbfd46..8d1a7e4af 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -48,25 +48,29 @@ TOKEN_KIND(_OperatorBegin, "_OperatorBegin"), \ TOKEN_KIND(Mul, "*"), \ TOKEN_KIND(Quo, "/"), \ TOKEN_KIND(Mod, "%"), \ + TOKEN_KIND(And, "&"), \ + TOKEN_KIND(Or, "|"), \ + TOKEN_KIND(Xor, "~"), \ + TOKEN_KIND(AndNot, "&~"), \ +TOKEN_KIND(_AssignOpBegin, "_AssignOpBegin"), \ TOKEN_KIND(AddEq, "+="), \ TOKEN_KIND(SubEq, "-="), \ TOKEN_KIND(MulEq, "*="), \ TOKEN_KIND(QuoEq, "/="), \ TOKEN_KIND(ModEq, "%="), \ - TOKEN_KIND(And, "&"), \ - TOKEN_KIND(Or, "|"), \ - TOKEN_KIND(Xor, "~"), \ - TOKEN_KIND(AndNot, "&~"), \ TOKEN_KIND(AndEq, "&="), \ TOKEN_KIND(OrEq, "|="), \ TOKEN_KIND(XorEq, "~="), \ - TOKEN_KIND(AndNotEq, "&~"), \ + TOKEN_KIND(AndNotEq, "&~="), \ +TOKEN_KIND(_AssignOpEnd, "_AssignOpEnd"), \ TOKEN_KIND(Increment, "++"), \ TOKEN_KIND(Decrement, "--"), \ TOKEN_KIND(ArrowRight, "->"), \ TOKEN_KIND(ArrowLeft, "<-"), \ TOKEN_KIND(CmpAnd, "&&"), \ TOKEN_KIND(CmpOr, "||"), \ + TOKEN_KIND(CmpAndEq, "&&="), \ + TOKEN_KIND(CmpOrEq, "||="), \ \ TOKEN_KIND(_ComparisonBegin, "_ComparisonBegin"), \ TOKEN_KIND(CmpEq, "=="), \ @@ -77,8 +81,6 @@ TOKEN_KIND(_ComparisonBegin, "_ComparisonBegin"), \ TOKEN_KIND(GtEq, ">="), \ TOKEN_KIND(_ComparisonEnd, "_ComparisonEnd"), \ \ - TOKEN_KIND(CmpAndEq, "&&="), \ - TOKEN_KIND(CmpOrEq, "||="), \ TOKEN_KIND(OpenParen, "("), \ TOKEN_KIND(CloseParen, ")"), \ TOKEN_KIND(OpenBracket, "["), \ |