Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle nibbler case of named assertions.
  • Loading branch information
jnthn committed Nov 18, 2011
1 parent 0b22858 commit 3071d43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -207,7 +207,7 @@ class QRegex::P6Regex::Actions is HLL::Actions {
QAST::Regex.new(
$<GOAL>.ast,
QAST::Regex.new( PAST::Node.new('FAILGOAL', ~$<GOAL>),
:rxtype<subrule>, :subtype<method> ),
:rxtype<subrule>, :subtype<method> ),
:rxtype<altseq>
),
:rxtype<concat>
Expand Down Expand Up @@ -342,6 +342,9 @@ class QRegex::P6Regex::Actions is HLL::Actions {
if $<arglist> {
for $<arglist>[0].ast.list { $qast[0].push( $_ ) }
}
elsif $<nibbler> {
$qast[0].push(buildsub($<nibbler>[0].ast));
}
}
make $qast;
}
Expand Down

0 comments on commit 3071d43

Please sign in to comment.