Created
March 4, 2016 20:07
-
-
Save umurgdk/189323db6160defd3531 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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