Skip to content

Instantly share code, notes, and snippets.

@umurgdk
Created March 4, 2016 20:07
Show Gist options
  • Save umurgdk/189323db6160defd3531 to your computer and use it in GitHub Desktop.
Save umurgdk/189323db6160defd3531 to your computer and use it in GitHub Desktop.
macro choice(*parsers)
current_column = @column_number
begin
{% for name, index in parsers %}
{{name}}
{% if index < parsers.size - 1 %}
rescue
{% end %}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment