Skip to content

Instantly share code, notes, and snippets.

@raydiak
Last active October 30, 2015 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save raydiak/5f84ddc0c3255a1ae630 to your computer and use it in GitHub Desktop.
Save raydiak/5f84ddc0c3255a1ae630 to your computer and use it in GitHub Desktop.
my %circ = (
'(' => ')',
'[' => ']'
);
token circumfix_operation { (<circumfix_open>) <expression> (<circumfix_close>) <?{ %circ{$0} eq $1 }> }
token circumfix_open { @(%circ.keys) }
token circumfix_close { @(%circ.values) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment