Note that I sent a patch to that effect to p6c Jun 2 in a mail titled
support of parsing from a non TOP rule
that has not been applied. It still works. Attached below. Testable by :
use Test; grammar A { token hi { hi } }; ok A.parse( 'hi',
:rulehi) eq 'hi', Grammar.parse: :rulesomerule
On
Hi,
Am 19.07.2010 04:20, schrieb Stéphane Payrard:
Note that I sent a patch to that effect to p6c Jun 2 in a mail titled
support of parsing from a non TOP rule
Either somebody applied it, or it was superfluous - :rulerulename
works in Rakudo (though I don't know if it works in nqp-rx).