Massive Refactor and If statements

This commit is contained in:
gingerBill committed 2016-08-02 01:08:36 +01:00
1 parent e5665a190d
commit bf3283c889
12 files changed
+1229 -1102

No files matched your search

+6 -1
View File
@@ -705,7 +705,12 @@ Token tokenizer_get_token(Tokenizer *t) {
case '&':
token.kind = Token_And;
if (t->curr_rune == '~') {
token.kind = token_type_variant2(t, Token_AndNot, Token_AndNotEq);
token.kind = Token_AndNot;
advance_to_next_rune(t);
if (t->curr_rune == '=') {
token.kind = Token_AndNotEq;
advance_to_next_rune(t);
}
} else {
token.kind = token_type_variant3(t, Token_And, Token_AndEq, '&', Token_CmpAnd);
if (t->curr_rune == '=') {