Advertisement
Picko

[KP] 6.

Oct 30th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. | ID PLROV Vyraz
  2.             { ii=najdiLP($1);
  3.               $$.sig=LP[ii].sig;
  4.               $$.kod=(char*)malloc(20 + strlen($3.kod));
  5.               if(strcmp(LP[ii].sig,$3.sig)!=0)
  6.                 yyerror("Nekompatibilne priradenie");
  7.               if(LP[ii].sig[0]=='I')
  8.                 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);
  9.  
  10.             }
  11.  
  12.         | ID MINROV Vyraz
  13.             { ii=najdiLP($1);
  14.               $$.sig=LP[ii].sig;
  15.               $$.kod=(char*)malloc(20 + strlen($3.kod));
  16.               if(strcmp(LP[ii].sig,$3.sig)!=0)
  17.                 yyerror("Nekompatibilne priradenie");
  18.               if(LP[ii].sig[0]=='I')
  19.                 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);
  20.                           free($3.kod);
  21.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement