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).
Author: moritz
Date: 2010-07-18 22:40:18 +0200 (Sun, 18 Jul 2010)
New Revision: 31755
Modified:
docs/Perl6/Spec/S05-regex.pod
Log:
[S05] specifiy that .parse can invoke other subrules than TOP by name
Modified: docs/Perl6/Spec/S05-regex.pod