Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | WHILE OCURV Expr CCURV Statement {
- no_aux = new_node("While",NULL);add_child(no_aux,$3);
- if ( $5 != NULL)
- {
- if ($5->next_node != NULL)
- {
- aux = new_node("Block",NULL);
- add_child(aux,$5);
- add_sibiling($3,aux);
- }
- else
- {
- add_sibiling($3,$5);
- }
- }
- else
- {
- aux = new_node("Block",NULL);
- add_sibiling($3,aux);
- }
- $$ = no_aux;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement