diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-01 01:04:30 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-11 00:14:35 +0200 |
| commit | 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae (patch) | |
| tree | f9820f96b8eab624430c3700f32a2878a7036ee2 /src/prc1/kw.c | |
| parent | 9140988be4e5bb028b7140aca1a67af1370c72a7 (diff) | |
| download | prc-4ce39e4fc1de9536de7dedfe91b6dee38dec76ae.tar.gz | |
WIP sym + cgen
Diffstat (limited to 'src/prc1/kw.c')
| -rw-r--r-- | src/prc1/kw.c | 10 |
1 files changed, 6 insertions, 4 deletions
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) |
