Related articles |
---|
BISON: multiple parsers within a single program. pendell@hotmail.com (2002-12-19) |
Re: BISON: multiple parsers within a single program. clint@0lsen.net (Clint Olsen) (2002-12-22) |
From: | Clint Olsen <clint@0lsen.net> |
Newsgroups: | comp.compilers |
Date: | 22 Dec 2002 10:33:54 -0500 |
Organization: | AT&T Broadband |
References: | 02-12-087 |
Keywords: | parse, yacc |
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.
-Clint
Return to the
comp.compilers page.
Search the
comp.compilers archives again.