|BISON: multiple parsers within a single program. firstname.lastname@example.org (2002-12-19)|
|Re: BISON: multiple parsers within a single program. email@example.com (Clint Olsen) (2002-12-22)|
|From:||Clint Olsen <firstname.lastname@example.org>|
|Date:||22 Dec 2002 10:33:54 -0500|
|Posted-Date:||22 Dec 2002 10:33:54 EST|
> My solution:
> Use Flex/Bison to generate four parsers, one for each file. I will
> then build a driver which will direct the use of the parsers among the
> files and store the collected data in central data structures.
You can have as many parsers and lexers for different grammars in your
program as you want. There are arguments you can pass to both programs (-p
and -P respectively) to control the namespaces of the functions and global
data so they don't collide with each other.
Return to the
Search the comp.compilers archives again.