symbol* intern_typeTable (astree* tree) { symbol* temp = (symbol*)malloc(sizeof(struct symbol)); temp->fields = NULL; temp->parameters = NULL; temp->attributes = ATTR_struct; temp->blocknr = 0; temp->filenr = tree->filenr; temp->linenr = tree->linenr; temp->offset = tree->offset; temp->initialized = 0; typeTable.insert ({tree->children.at(0)->lexinfo, temp}); return temp; }