help-bison
[Top][All Lists]
Advanced

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

Re: parse tree


From: Hans Aberg
Subject: Re: parse tree
Date: Fri, 19 Apr 2002 08:39:57 +0200

At 17:33 -0400 2002/04/18, Aurelian Melinte wrote:
>I have been reading some reeingineering papers those days and all the
>techniques explained had as a starting point the parse tree of the sources.
>So, I looked around and found that bison does not offer the parse tree (or,
>alternatively, the abstract tree syntax).

So the answer to that is that the Bison generated parser does that via the
actions. If you want the parsing tree explicitly, you have to build it via
the actions.

>The other way I thought of, let bison do it and this way it will be there
>for every grammar.

I am not sure what you are meaning here: The parsing tree depends on the
input; every language sentence has its own parsing tree.

  Hans Aberg





reply via email to

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