Begin work on semantically type checking asm templates

This commit is contained in:
gingerBill
2026-08-09 18:24:56 +01:00
parent 5e49e6c1a5
commit 5ac28cdecd
8 changed files with 769 additions and 29 deletions

View File

@@ -24,7 +24,7 @@ gb_internal Token ast_token(Ast *node) {
case Ast_AsmLabelDecl:
return node->AsmLabelDecl.token;
case Ast_AsmInstruction:
return node->AsmInstruction.name;
return ast_token(node->AsmInstruction.name);
case Ast_AsmMemoryOperand:
return node->AsmMemoryOperand.open;
@@ -194,7 +194,7 @@ Token ast_end_token(Ast *node) {
if (node->AsmInstruction.operands.count > 0) {
return ast_end_token(node->AsmInstruction.operands[node->AsmInstruction.operands.count-1]);
}
return node->AsmInstruction.name;
return ast_end_token(node->AsmInstruction.name);
case Ast_AsmMemoryOperand:
return node->AsmMemoryOperand.close;