Wanky constant in structs sort of working but long way to go

This commit is contained in:
Krzosa Karol
2022-05-30 18:46:01 +02:00
parent 980a3b68b9
commit a9b0318720
5 changed files with 32 additions and 45 deletions

View File

@@ -554,19 +554,15 @@ is_atom(Ast *ast){
function Ast *
query_struct(Ast_Struct *agg, Intern_String string){
For(agg->members){
if(it->name == string){
return it;
}
}
For(agg->const_members){
if(it->name == string){
return it;
}
}
return 0;
}
}