[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem building a reentrant parser
From: |
Bruce Lilly |
Subject: |
Re: Problem building a reentrant parser |
Date: |
Fri, 17 Feb 2006 01:27:03 -0000 |
User-agent: |
KMail/1.9.1 |
On Thu February 16 2006 10:29, address@hidden wrote:
> Thanks for the response.
>
> Changing %pure_parser to %pure-parser does not change any of the
> behaviour. The compile error message is exactly the same. The
> developers seem to have dummy proofed at least this part.
>
> Any other ideas?
For an example of a reentrant flex/bison parser, see
http://users.erols.com/blilly/mparse/index.html
Basically, you need to tell flex to generate a header file with the
macro definitions and function declarations, then you need to massage
it (see make.file in the package above) e.g. using sed to make it
play nicely with bison and gcc. Finally, you need to have the parser
#include the massaged header file at an appropriate point.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Problem building a reentrant parser,
Bruce Lilly <=