On Tue, Sep 13, 2016 at 10:35:01AM -0400, Bennett Todd wrote: > Having the minutia of the programmatic run-time state of the parse then > influence the parse itself, is at the heart of the perl5 phenomenon "only > Perl can parse perl", which I rather hope isn't going to be preserved in > perl6.
You may be disappointed to read this: Not only is this feature preserved in Perl 6... it's something of a prerequisite. It is what is required for a truly dynamic language that has many things happening in BEGIN blocks (i.e., things get executed even before you finish compiling the thing you're working on) and that allows dynamically adding new statement types and language features to the grammar. When implementing Perl 6, I think many of us aimed to minimize the amount of "runtime" things that happened during the parse... only to discover that we actually had to embrace and formalize it instead. Pm