mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 22:01:47 -04:00
Begin work on semantically type checking asm templates
This commit is contained in:
1 parent
5e49e6c1a5
commit
5ac28cdecd
8 files changed
+769
-29
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user