On Thu Jun 07 11:23:08 2012, kristofbogae...@gmail.com wrote:
> When feeding this code to rakudo, niecza, nqp:
> 
> my grammar G {
> method s_m(*%n) { say(%n<a>, %n<b>, %n<c>) }
> token TOP { <s_m(|hash(:a<1>, :c<3>), :b<2>)> }
> }
> G.s_m(|hash(:a<1>, :c<3>), :b<2>);
> G.parse('');
> 
> 
> The following happens:
> 
> rakudo e75a0a: OUTPUT«123␤Too many positional parameters passed; got 2 but
> expected 1␤ in method s_m at /tmp/WoccMCN4lv:1␤ in regex TOP at
> /tmp/WoccMCN4lv:1␤ in method parse at src/gen/CORE.setting:9647␤ in block
> <anon> at /tmp/WoccMCN4lv:1␤␤»
> 
Fixed this (and flattening positionals, and normal nameds), and added tests for 
them all in S05-grammar/signatures.t.

Reply via email to