Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. MethodParamsL: MethodParams {$$ = $1;}
  2. | FormalParamsStringArray {$$ = create_and_insert_node("MethodParams", 1, 1, $1);}
  3. | {$$ = create_and_insert_node("MethodParams", 1, 0);}
  4.  
  5. VOIDAux: VOID {$$=create_terminal_node("Void", 1, $1);}
  6.  
  7. MethodParams: MethodParams COMMA FormalParams {$1->to_be_used = 0; $$ = create_and_insert_node("MethodParams", 1, 2, $1, $3);}
  8. | FormalParams {$$ = create_and_insert_node("MethodParams", 1, 1, $1);}
  9.  
  10. FormalParamsStringArray: StringArray OSQUARE CSQUARE IDAux {$$ = create_and_insert_node("ParamDecl", 1, 2, $1, $4);}
  11.  
  12. FormalParams: Type IDAux {$$ = create_and_insert_node("ParamDecl", 1, 2, $1, $2);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement