help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: Loops using flex/bison..


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:

  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?

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.

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]