|
From: | Anthony DeRobertis |
Subject: | Re: AW: Loops using flex/bison.. |
Date: | Tue, 5 Feb 2002 08:36:47 -0500 |
On Tuesday, February 5, 2002, at 07:00 AM, Olav Groehn wrote:
Yes, you could do some really evil hacks with putting something between bison and flex to re-feed a token stream on demand. But I wouldn't suggest that.Is there a way to do this other than having flex output pcode into an array and having a special program feed that to the parser?
You really should build some intermediate representation, such as an abstract syntax tree. Which happens to be what GCC does. So it'll help you there, if you use the same format.
[Prev in Thread] | Current Thread | [Next in Thread] |