aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/cc.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-19 12:13:05 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-19 12:13:05 -0700
commit732c0f6ed6bc072638a66e8ed6802968e18ceb98 (patch)
tree8bfc25aff1903f452006f31ff6a2f906303e2017 /sys/cmd/cc/cc.h
parent5c3114c81477298e9eb78ed3a070752f8d24b8a5 (diff)
feat: cleaned up character lexing
Diffstat (limited to 'sys/cmd/cc/cc.h')
-rw-r--r--sys/cmd/cc/cc.h18
1 files changed, 10 insertions, 8 deletions
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;
};