On 04/14/2014 06:11 AM, Alexander Moquin via RT wrote:
On Thu Oct 18 02:13:15 2012, moritz wrote:
The problem is that the $*ACTIONS contextual is set to a type object
(used to be Any, now Mu), so $*ACTIONS.any existed, but caused an error.

commit 0973612366de17d6eab26e975663e63170e5d1d5 eased some of the pain
by switching it from Any to Mu, but the underlying problem is still there.

00:11 <Mouq> r: grammar A { token TOP { <any> }; token any { 'foo' | 'bar' } }; 
say A.parse('foo')
00:11 <camelia> rakudo-parrot 79167a, rakudo-jvm 79167a, rakudo-moar 79167a: 
OUTPUT«「foo」␤ any => 「foo」␤␤»

Closeable with tests

The problem can still be reproduced with method names from class Mu, for example 'so':


<moritz> m: grammar A { token TOP { <so> }; token so { 'foo' | 'bar' }
         }; say A.parse('foo')
<camelia> rakudo-moar 07dcb2: OUTPUT«Too many positional parameters
          passed; got 2 but expected 1␤  in method so at
          src/gen/m-CORE.setting:834␤  in any !reduce at
          gen/moar/stage2/QRegex.nqp:759␤  in any !cursor_pass at
          gen/moar/stage2/QRegex.nqp:721␤  in regex so at
          /tmp/4Fzij7cVZH:1…»

Reply via email to