Support [base + index<<scale] and [base + index>>scale]; Support syntax for [base]:u8 (not implemented yet)

This commit is contained in:
gingerBill
2026-08-12 09:03:31 +01:00
parent 21ad041232
commit c80fedc070
5 changed files with 103 additions and 27 deletions

View File

@@ -502,12 +502,14 @@ struct AstSplitArgs {
Slice<Ast *> operands; \
}) \
AST_KIND(AsmMemoryOperand, "asm memory operand", struct { \
Token open; \
Ast * base; \
Ast * index; \
Ast * scale; \
Ast * disp; \
Token close; \
Token open; \
Ast * base; \
Ast * index; \
Token scale_op; \
Ast * scale; \
Ast * disp; \
Ast * type; \
Token close; \
}) \
AST_KIND(_ExprBegin, "", bool) \
AST_KIND(BadExpr, "bad expression", struct { Token begin, end; }) \