Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update obsolete proto-regex syntax in P6Regex
( If anything should be up-to-date on S05… )
  • Loading branch information
Mouq committed Oct 3, 2013
1 parent 2b8f9e3 commit 33fe530
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/QRegex/P6Regex/Grammar.nqp
Expand Up @@ -160,7 +160,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
]
}

proto token quantifier { <...> }
proto token quantifier {*}
token quantifier:sym<*> { <sym> <backmod> }
token quantifier:sym<+> { <sym> <backmod> }
token quantifier:sym<?> { <sym> <backmod> }
Expand Down Expand Up @@ -188,7 +188,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {

token backmod { ':'? [ '?' | '!' | <!before ':'> ] }

proto token metachar { <...> }
proto token metachar {*}
token metachar:sym<ws> { <.normspace> }
token metachar:sym<[ ]> { '[' <nibbler> ']' }
token metachar:sym<( )> { '(' <nibbler> ')' }
Expand Down Expand Up @@ -238,7 +238,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
[ <.ws> '=' <.ws> <quantified_atom> ]**0..1
}

proto token backslash { <...> }
proto token backslash {*}
token backslash:sym<s> { $<sym>=[<[dDnNsSwW]>] }
token backslash:sym<b> { $<sym>=[<[bB]>] }
token backslash:sym<e> { $<sym>=[<[eE]>] }
Expand All @@ -258,7 +258,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
token backslash:sym<unsp> { [\s|'#'] <.panic: 'Unspace not allowed in regex'> }
token backslash:sym<misc> { \W }

proto token cclass_backslash { <...> }
proto token cclass_backslash {*}
token cclass_backslash:sym<s> { $<sym>=[<[dDnNsSwW]>] }
token cclass_backslash:sym<b> { $<sym>=[<[bB]>] }
token cclass_backslash:sym<e> { $<sym>=[<[eE]>] }
Expand All @@ -272,7 +272,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
token cclass_backslash:sym<c> { $<sym>=[<[cC]>] <charspec> }
token cclass_backslash:sym<any> { . }

proto token assertion { <...> }
proto token assertion {*}

token assertion:sym<?> { '?' [ <?before '>' > | <assertion> ] }
token assertion:sym<!> { '!' [ <?before '>' > | <assertion> ] }
Expand Down Expand Up @@ -330,7 +330,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
]
}

proto token mod_ident { <...> }
proto token mod_ident {*}
token mod_ident:sym<ignorecase> { $<sym>=[i] 'gnorecase'? » }
token mod_ident:sym<ratchet> { $<sym>=[r] 'atchet'? » }
token mod_ident:sym<sigspace> { $<sym>=[s] 'igspace'? » }
Expand Down

0 comments on commit 33fe530

Please sign in to comment.