Skip to content

Commit

Permalink
Ununderscore param_term
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 11, 2023
1 parent 58d638d commit e0cefed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Raku/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ class Raku::Actions is HLL::Actions does Raku::CommonActions {
method parameter($/) {
my $parameter := $<param-var> ?? $<param-var>.ast !!
$<named_param> ?? $<named_param>.ast !!
$<param_term> ?? $<param_term>.ast !!
$<param-term> ?? $<param-term>.ast !!
self.r('Parameter').new;
my $capture := self.r('Type', 'Capture');
my $raku-type := self.r('Type');
Expand Down Expand Up @@ -2508,7 +2508,7 @@ class Raku::Actions is HLL::Actions does Raku::CommonActions {
self.attach: $/, self.set-declarand($/, self.r('Parameter').new(|%args));
}

method param_term($/) {
method param-term($/) {
if $<defterm> {
# Create sigilless target to bind into
my $name := $<defterm>.ast;
Expand Down
6 changes: 3 additions & 3 deletions src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -2998,15 +2998,15 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
| $<quant>=['\\'|'|'] <param-var> {
$/.panic('Obsolete use of | or \\ with sigil on param ' ~ $<param-var>);
}
| $<quant>=['\\'|'|'|'+'] <param_term>
| $<quant>=['\\'|'|'|'+'] <param-term>
| [ <param-var> | <named_param> ] $<quant>=['?'|'!'|<?>]
| <?>
]
| $<quant>=['**'|'*'|'+'] <param-var>
| $<quant>=['\\'|'|'] <param-var> {
$/.panic('Obsolete use of | or \\ with sigil on param ' ~ $<param-var>);
}
| $<quant>=['\\'|'|'|'+'] <param_term>
| $<quant>=['\\'|'|'|'+'] <param-term>
| [ <param-var> | <named_param> ] $<quant>=['?'|'!'|<?>]
]
<.ws>
Expand Down Expand Up @@ -3062,7 +3062,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
]
}
token param_term {
token param-term {
<defterm>?
}
Expand Down

0 comments on commit e0cefed

Please sign in to comment.