I have a situation where I would like to parse several closely related languages. All of them use the same rather complex expression syntax and support a small number of unique statements. For efficiency reasons I was hoping to parse all of these languages with the same set of Ply tables by defining a grammar that covers all of the statements, but restricting the parsing to an individual language by specifying the start rule on parse(). Then I realized that one specifies the start rule on yacc() rather than parse(), meaning that I would still be building the tables for several parsers.
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). -Ken -- 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.
