On 07/02/2011 23:13, Tejas Kajarekar wrote:
Hi Martin,
If I understand your question correctly, here is a way to have multiple
scanners and parsers in the same program.

No, he's asking about using a subset of an existing grammar in a new parser.

Example: I have a language which includes a complex expression syntax. I also have a separate preprocessor for the same language, which uses exactly the same expression syntax. This means that I need to write two completely separate flex/bison files, and maintain both of them, even though one of them is a subset of the other one.

This would be a nice feature - I think it's been asked for before on this list.

_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to