From 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 1 Oct 2026 01:04:30 +0200 Subject: WIP sym + cgen --- src/prc1/kw.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/prc1/kw.c') diff --git a/src/prc1/kw.c b/src/prc1/kw.c index c72ac97..0f4ca9f 100644 --- a/src/prc1/kw.c +++ b/src/prc1/kw.c @@ -11,8 +11,10 @@ static const char *kws[] = /* types */ "union", "struct", "constant", "alias", "prototype", /* operators */ - "add", "subtract", "multiply", "divide", "xor", "bitor", "bitand", - "leftshift", "rightshift", "address", "size", "call", "set", + "add", "subtract", "multiply", "divide", "negate", "xor", "bitor", "bitand", + "leftshift", "rightshift", "call", "set", + /* expressions */ + "address", "cast", "contents", "offset", "size", /* procedures */ "using", "returning", /* built-in functions */ @@ -26,9 +28,9 @@ static const char *kws[] = /* built-in types */ "void", "array", "pointer", /* built-in signed types */ - "byte", "halfword", "word", "long", + "char", "schar", "short", "int", "long", "longlong", /* built-in unsigned types */ - "ubyte", "uhalfword", "uword", "ulong" + "uchar", "ushort", "uint", "ulong", "ulonglong" }; int kw(const char *s) -- cgit v1.2.3