Skip to content

Commit

Permalink
Replace <.throw_null_pattern> on regex infixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouq committed Oct 21, 2013
1 parent 05b0c30 commit d565a90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/QRegex/P6Regex/Grammar.nqp
Expand Up @@ -129,22 +129,22 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {

token termaltseq {
<termconjseq>
[ '||' <.ws> { $*SEQ := 1; } <termconjseq> ]*
[ '||' <.ws> [ { $*SEQ := 1; } <termconjseq> || <.throw_null_pattern> ] ]*
}

token termconjseq {
<termalt>
[ '&&' <.ws> { $*SEQ := 0; } <termalt> ]*
[ '&&' <.ws> [ { $*SEQ := 0; } <termalt> || <.throw_null_pattern> ] ]*
}

token termalt {
<termconj>
[ '|' <![|]> <.ws> { $*SEQ := 0; } <termconj> ]*
[ '|' <![|]> <.ws> [ { $*SEQ := 0; } <termconj> || <.throw_null_pattern> ] ]*
}

token termconj {
<termish>
[ '&' <![&]> <.ws> { $*SEQ := 0; } <termish> ]*
[ '&' <![&]> <.ws> [ { $*SEQ := 0; } <termish> || <.throw_null_pattern> ] ]*
}

token termish {
Expand Down

0 comments on commit d565a90

Please sign in to comment.