Re: Flex / Bison Multiple parser question

Thomas Dickey <dickey@saltmine.radix.net>
Mon, 18 Jun 2007 11:49:02 -0000

          From comp.compilers

Related articles
Flex / Bison Multiple parser question amc4@doc.ic.ac.uk (Andrew Cheadle) (2007-06-15)
Re: Flex / Bison Multiple parser question dickey@saltmine.radix.net (Thomas Dickey) (2007-06-18)
Re: Flex / Bison Multiple parser question dickey@saltmine.radix.net (Thomas Dickey) (2007-06-20)
| List of all articles for this month |

From: Thomas Dickey <dickey@saltmine.radix.net>
Newsgroups: comp.compilers
Date: Mon, 18 Jun 2007 11:49:02 -0000
Organization: RadixNet Internet Services
References: 07-06-021
Keywords: parse, yacc, design, comment

Andrew Cheadle <amc4@doc.ic.ac.uk> wrote:
> [I have never seen an application that actually needed multiple lexers,
> since you can get the same effect in a single lexer by using start
> states. Multiple parsers are pretty rare too, since you can combine
> them as well by stuffing a per-grammar initial symbol. Tell us what
> you're really trying to do, and we can probably offer more useful
> advice. -John]


Back around 1989, I did some maintenance on a program which used iirc 2-3
lexers and five grammars - it was split up that way because the table
sizes would otherwise have been too large for the toolchain (including the
compiler ;-).


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[That was certainly an issue 20 years ago. But today? -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.