Skip to content

Instantly share code, notes, and snippets.

@simonask
Created July 7, 2009 08:54
Show Gist options
  • Save simonask/141971 to your computer and use it in GitHub Desktop.
Save simonask/141971 to your computer and use it in GitHub Desktop.
/* simplified; no UNLESS. */
conditional: IF expression EOL body EOL post_conditional { $$ = snow_ast_if_else($2, $4, $6); }
post_conditional: END
| ELSEIF expression EOL body EOL post_conditional { $$ = snow_ast_if_else($2, $4, $6); }
| ELSE body EOL { $$ = $2; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment