Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Allow <assertion(args)> to use NQP expressions as arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Nov 2, 2009
1 parent 218e91c commit 195e47c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/NQP/Grammar.pm
Expand Up @@ -421,6 +421,18 @@ grammar NQP::Regex is Regex::P6Regex::Grammar {
<?[{]> <codeblock>
}

token assertion:sym<name> {
$<longname>=[\w+]
[
| <?before '>'>
| '=' <assertion>
| ':' <arglist>
| '(' <arglist=LANG('MAIN','arglist')> ')'
| <.normspace> <nibbler>
]?
}


token codeblock {
<block=LANG('MAIN','pblock')>
}
Expand Down

0 comments on commit 195e47c

Please sign in to comment.