From 732c0f6ed6bc072638a66e8ed6802968e18ceb98 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 19 May 2020 12:13:05 -0700 Subject: feat: cleaned up character lexing --- sys/cmd/cc/cc.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'sys/cmd/cc/cc.h') diff --git a/sys/cmd/cc/cc.h b/sys/cmd/cc/cc.h index 0e525be..f5d3d28 100644 --- a/sys/cmd/cc/cc.h +++ b/sys/cmd/cc/cc.h @@ -179,12 +179,13 @@ enum NUM_TOKENS, Vchar = iota(8), - Vint = iota(9), - Vlong = iota(10), - Vvlong = iota(11), - Vusgn = iota(12), - Vfloat = iota(13), - Vstr = iota(14), + Vrune = iota(9), + Vint = iota(10), + Vlong = iota(11), + Vvlong = iota(12), + Vun = iota(13), + Vfloat = iota(14), + Vstr = iota(15), Vmask = Vchar - 1, }; @@ -202,8 +203,9 @@ struct Token double f; vlong i; uvlong ui; - byte c; - ubyte uc; + int32 c; + uint32 uc; + rune r; } val; }; -- cgit v1.2.1