diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-25 19:19:25 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-25 19:19:25 +0000 |
| commit | b59a052e32b1ed84134e31baad86c8e401f796c6 (patch) | |
| tree | 9aef601f0d9a25e43fe046f274508bf774dad9a2 /src/tokenizer.c | |
| parent | 12498b2d390c95fd49672f8ee1c64b7b254c293c (diff) | |
Change casting syntax: `cast(T)x` `transmute(T)x` et al.
Diffstat (limited to 'src/tokenizer.c')
| -rw-r--r-- | src/tokenizer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tokenizer.c b/src/tokenizer.c index 6f2213ca0..eadfc767d 100644 --- a/src/tokenizer.c +++ b/src/tokenizer.c @@ -111,6 +111,10 @@ TOKEN_KIND(Token__KeywordBegin, "_KeywordBegin"), \ TOKEN_KIND(Token_asm, "asm"), \ TOKEN_KIND(Token_push_allocator, "push_allocator"), \ TOKEN_KIND(Token_push_context, "push_context"), \ + TOKEN_KIND(Token_cast, "cast"), \ + TOKEN_KIND(Token_transmute, "transmute"), \ + TOKEN_KIND(Token_down_cast, "down_cast"), \ + TOKEN_KIND(Token_union_cast, "union_cast"), \ TOKEN_KIND(Token__KeywordEnd, "_KeywordEnd"), \ TOKEN_KIND(Token_Count, "") @@ -149,7 +153,6 @@ bool token_pos_eq(TokenPos a, TokenPos b) { return token_pos_cmp(a, b) == 0; } -// NOTE(bill): Text is UTF-8, thus why u8 and not char typedef struct Token { TokenKind kind; String string; |