diff options
author | pommicket <pommicket@gmail.com> | 2022-01-27 10:57:18 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-01-27 10:57:18 -0500 |
commit | 539f23eaec856f28e7776e94b077e0ddd775fee5 (patch) | |
tree | b1b0b00315f8cbc71dbf1be7398a0ce0fe6d51d9 /05/constants.b | |
parent | d036dcc5ac24aaa499d7cec50a94eed645f76bfb (diff) |
structs mostly working
Diffstat (limited to '05/constants.b')
-rw-r--r-- | 05/constants.b | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/05/constants.b b/05/constants.b index 06b141f..a04fc1d 100644 --- a/05/constants.b +++ b/05/constants.b @@ -134,7 +134,8 @@ ; - for unary operators, the operand ; - for casts, the operand (type is given by type member) ; - for binary operators, the first operand followed by the second -; - for the operators . and ->, the first argument is a 64-bit pointer to the name of the member and the second is the left hand side of the . / -> +; - for the operators . and ->, the first argument is the expression on the left-hand side, and the second argument is a 64-bit offset. +; we could use a 32-bit offset but that would cause things to be unaligned. ; - for the ternary operator ? :, the first followed by the second followed by the third ; - for function calls, the function, followed by each of the arguments to the function — info indicates the number of arguments ; Note that file/line number are not stored in expressions. @@ -685,3 +686,6 @@ :str_union string union byte 0 +:str_typedef ; currently only used for nice debug output + string typedef + byte 0 |