in reply to Perl 6 and Perl 5 parsing
Perl 6 syntax is more complex, in the sense the grammar is mutable.
That's not what "syntax" means.
I mean to say willn't it suffer from the same problem. If the grammar is muted runtime, shouldn't it be sent back to the parser. Which in case it won't be parsed statically(I can't take the bytecode alone and run it, I will always need the parser along with it).
Not sure it makes sense for the grammar to be mutated at runtime, since the source code will already have been parsed and generated by then.
You are correct in the sense that Perl 6 leans heavily on a way to switch between compile-time and run-time, so the two components need to be connected somehow. This is nothing new, though: BEGIN and &eval have allowed this for a long time in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl 6 and Perl 5 parsing
by Anonymous Monk on Jan 14, 2011 at 10:03 UTC | |
by masak (Scribe) on Jan 14, 2011 at 10:45 UTC | |
by ikegami (Patriarch) on Jan 14, 2011 at 18:58 UTC | |
by moritz (Cardinal) on Jan 14, 2011 at 19:20 UTC | |
by ikegami (Patriarch) on Jan 14, 2011 at 19:24 UTC | |
by moritz (Cardinal) on Jan 14, 2011 at 20:21 UTC | |
| |
|
Re^2: Perl 6 and Perl 5 parsing
by educated_foo (Vicar) on Jan 14, 2011 at 13:26 UTC | |
by masak (Scribe) on Jan 14, 2011 at 16:54 UTC | |
by educated_foo (Vicar) on Jan 15, 2011 at 02:28 UTC |