removed most seg faults

This commit is contained in:
Scarlett
2025-03-28 16:11:42 -04:00
parent cca01eb0b5
commit f217500b55
3 changed files with 63 additions and 53 deletions

View File

@ -246,10 +246,10 @@ simple_statement:
;
assignable:
ID {$$ = $1; }
ID {$$ = getType(look_up(cur,$1));}
| assignable ablock {$$ = getName(getReturn(look_up(cur, $1)));}
| assignable rec_op ID {if(undefined != (tn = table_lookup(getRecList(look_up(cur, $1)), $3)))
{$$ = getType(tn);}}
| assignable rec_op ID {if(undefined != table_lookup(getRecList(look_up(cur, $1)), $3)){
{$$ = getName(table_lookup(getRecList(look_up(cur, $1)), $3));}};}
;
rec_op :