Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. | WHILE OCURV Expr CCURV Statement {
  2. no_aux = new_node("While",NULL);add_child(no_aux,$3);
  3. if ( $5 != NULL)
  4. {
  5.  
  6. if ($5->next_node != NULL)
  7. {
  8. aux = new_node("Block",NULL);
  9. add_child(aux,$5);
  10. add_sibiling($3,aux);
  11. }
  12. else
  13. {
  14. add_sibiling($3,$5);
  15. }
  16. }
  17. else
  18. {
  19. aux = new_node("Block",NULL);
  20. add_sibiling($3,aux);
  21. }
  22. $$ = no_aux;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement