Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | ID PLROV Vyraz
- { ii=najdiLP($1);
- $$.sig=LP[ii].sig;
- $$.kod=(char*)malloc(20 + strlen($3.kod));
- if(strcmp(LP[ii].sig,$3.sig)!=0)
- yyerror("Nekompatibilne priradenie");
- if(LP[ii].sig[0]=='I')
- sprintf($$.kod,"\tiload %d\n%s\tiadd\n\tistore\t%d\n\tiload\t%d\n",LP[ii].index, $3.kod, LP[ii].index, LP[ii].index);
- }
- | ID MINROV Vyraz
- { ii=najdiLP($1);
- $$.sig=LP[ii].sig;
- $$.kod=(char*)malloc(20 + strlen($3.kod));
- if(strcmp(LP[ii].sig,$3.sig)!=0)
- yyerror("Nekompatibilne priradenie");
- if(LP[ii].sig[0]=='I')
- sprintf($$.kod,"\tiload %d\n%s\tisub\n\tistore\t%d\n\tiload\t%d\n",LP[ii].index, $3.kod, LP[ii].index, LP[ii].index);
- free($3.kod);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement