Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Various bits of sig parsing alignment with STD.
  • Loading branch information
jnthn committed Sep 7, 2013
1 parent 0fb3b20 commit aa657cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Perl6/Grammar.nqp
Expand Up @@ -1105,6 +1105,8 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
token terminator:sym<for> { 'for' <.end_keyword> }
token terminator:sym<given> { 'given' <.end_keyword> }
token terminator:sym<when> { 'when' <.end_keyword> }
token terminator:sym<arrow> { '-->' }


token stdstopper {
[
Expand Down Expand Up @@ -2298,7 +2300,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}

rule param_sep {
$<sep>=[','|':'|';;'|';'] { @*seps.push($<sep>) }
'' $<sep>=[','|':'|';;'|';'] { @*seps.push($<sep>) }
}

# XXX Not really implemented yet.
Expand All @@ -2318,7 +2320,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
:my @*seps := nqp::list();
<.ws>
[
| <?before '-->' | ')' | ']' | '{' | ':'\s >
| <?before '-->' | ')' | ']' | '{' | ':'\s | ';;' >
| [ <parameter> || <.malformed('parameter')> ]
]+ % <param_sep>
<.ws>
Expand Down Expand Up @@ -2429,7 +2431,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
[
| <value>
| <typename>
| where <.ws> <EXPR('m=')>
| where <.ws> <EXPR('i=')>
]
<.ws>
}
Expand All @@ -2440,7 +2442,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
[
| '[' ~ ']' <signature>
| '(' ~ ')' <signature>
| where <EXPR('m=')>
| where <EXPR('i=')>
]
}

Expand Down

0 comments on commit aa657cc

Please sign in to comment.