Skip to content

Commit

Permalink
Remove **<sep>
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed May 16, 2012
1 parent b6d1a40 commit 7df35de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -116,15 +116,9 @@ class QRegex::P6Regex::Actions is HLL::Actions {

method quantifier:sym<**>($/) {
my $qast;
if $<quantified_atom> {
my $ast := $<quantified_atom>.ast;
$qast := QAST::Regex.new( :rxtype<quant>, :min(1), $ast);
}
else {
$qast := QAST::Regex.new( :rxtype<quant>, :min(+$<min>), :node($/) );
if ! $<max> { $qast.max(+$<min>) }
elsif $<max>[0] ne '*' { $qast.max(+$<max>[0]); }
}
$qast := QAST::Regex.new( :rxtype<quant>, :min(+$<min>), :node($/) );
if ! $<max> { $qast.max(+$<min>) }
elsif $<max>[0] ne '*' { $qast.max(+$<max>[0]); }
make backmod($qast, $<backmod>);
}

Expand Down
1 change: 0 additions & 1 deletion src/QRegex/P6Regex/Grammar.nqp
Expand Up @@ -98,7 +98,6 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
|| <.panic: "Only integers or '*' allowed as range quantifier endpoint">
]
]?
|| <quantified_atom>
]
}

Expand Down

0 comments on commit 7df35de

Please sign in to comment.