diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-02 03:03:01 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-02 03:03:01 -0500 |
| commit | ec29bfb9563bcec1cc2a054cc2c1942fd5c65cb1 (patch) | |
| tree | 7911b1e6fe12c4154656ed4915e5be7c95729707 /src/ast.h | |
| parent | Refactor variable access+assignment in terms of `generate_lvalue()` (diff) | |
| download | cup-ec29bfb9563bcec1cc2a054cc2c1942fd5c65cb1.tar.xz cup-ec29bfb9563bcec1cc2a054cc2c1942fd5c65cb1.zip | |
Add support for pointers! (tests missing)
This commit adds initial support for taking pointers / dereferencing.
The type system is still a bit of a hot mess, so all type information
is actually not looked at, but the functionality still seems to be
there.
Still need to add some tests for pointers/dereferencing to ensure that
it works in some edge cases as well.
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,7 +9,8 @@ F(OP_BWINV, "~") \ F(OP_PLUS, "+") \ F(OP_MINUS, "-") \ - F(OP_ADDROF, "&") \ + F(OP_ADDROF, "&") \ + F(OP_DEREF, "*") \ F(OP_MUL, "*") \ F(OP_DIV, "/") \ F(OP_MOD, "%") \ |