Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created April 15, 2013 19:22
Show Gist options
  • Save Ikke/5390601 to your computer and use it in GitHub Desktop.
Save Ikke/5390601 to your computer and use it in GitHub Desktop.
assignment_expression:
conditional_expression { $$ = $1; }
| coalesce_expression { $$ = $1; }
| unary_expression assignment_operator assignment_expression { $$ = ast_assignment($2, $1, $3); }
;
coalesce_expression:
T_IDENTIFIER T_COALESCE scalar_value { $$ = ast_opr(T_COALESCE, 2, $1, $3); }
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment