Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do store the NFA of standalone regexes.
Turns out that the current way we do gen_op in Rakudo needs that. (Yes,
this will change soon, but this is the easiest way for now.)
  • Loading branch information
jnthn committed Oct 21, 2012
1 parent e6b9101 commit deb59ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -675,9 +675,9 @@ class QRegex::P6Regex::Actions is HLL::Actions {
$code_obj.SET_CAPS(%caps);
}

# Override this to store the overall NFA for a regex. (Standalone mode doesn't need
# it, as it only supports executing individual regexes).
# Stores the NFA for the regex overall.
method store_regex_nfa($code_obj, $block, $nfa) {
$code_obj.SET_NFA($nfa.save);
}

# Stores the NFA for a regex alternation.
Expand Down

0 comments on commit deb59ee

Please sign in to comment.