Ken wrote:
So, given that background, I'd like to ask whether my understanding is
correct, and if it is, suggest an enhancement to Ply that parse() also
optionally take the start rule as an argument (but only if it doing so
does not require significant effort on the part of the developers).
I don't know about the effort, but I remember from the algorithm that the top-level rule was handled
in a different way (a few rules for EOF handling are added to it).
That would probably explain why ply works in the way it does.
As for your problem, an alternative could be to merge all your languages into one, build a parse
tree, and afterwards check that a user only used statements of one sub-language.
Albert
--
You received this message because you are subscribed to the Google Groups
"ply-hack" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/ply-hack?hl=en.