mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-05 03:30:21 +00:00
Support [base + index<<scale] and [base + index>>scale]; Support syntax for [base]:u8 (not implemented yet)
This commit is contained in:
@@ -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; }) \
|
||||
|
||||
Reference in New Issue
Block a user