Permalink
Browse files

Merge pull request #4 from FROGGS/master

move $( ~ ) into variable token
  • Loading branch information...
TimToady committed Feb 5, 2013
2 parents 7deb9d7 + da06458 commit 7551b8f9d52635372f708679d7475678a84c6d8b
Showing with 1 addition and 4 deletions.
  1. +1 −4 STD.pm6
View
@@ -2472,7 +2472,7 @@ grammar P6 is STD {
| <sigil> <index=.decint> [<?{ $*IN_DECL }> <.panic: "Cannot declare a numeric variable">]?
# Note: $() can also parse as contextualizer in an expression; should have same effect
| <sigil> <?before '<'> <postcircumfix> [<?{ $*IN_DECL }> <.panic: "Cannot declare a match variable">]?
- | <sigil> <?before '('> <postcircumfix> [<?{ $*IN_DECL }> <.panic: "Cannot declare a contextualizer">]?
+ | :dba('contextualizer') <sigil> '(' ~ ')' <semilist> { $*LEFTSIGIL ||= $<sigil>.Str } <O(|%term)> [<?{ $*IN_DECL }> <.panic: "Cannot declare a contextualizer">]?
| <sigil> <?{ $*IN_DECL }>
| <?> {
if $*QSIGIL {
@@ -3190,9 +3190,6 @@ grammar P6 is STD {
<O(|%term)>
}
- token circumfix:sigil
- { :dba('contextualizer') <sigil> '(' ~ ')' <semilist> { $*LEFTSIGIL ||= $<sigil>.Str } <O(|%term)> }
-
token circumfix:sym<( )>
{ :dba('parenthesized expression') '(' ~ ')' <semilist> <O(|%term)> }

0 comments on commit 7551b8f

Please sign in to comment.