help-bison
[Top][All Lists]
Advanced

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

parse tree


From: Aurelian Melinte
Subject: parse tree
Date: Thu, 18 Apr 2002 15:52:18 -0400

hello,

I will soon need to modify a grammar to build a parse tree. As bison does not offer such a functionality , I thought it would be nice to put it straight into it. At least, I could not find it and I am surprised to be the first one to have thought to.

For this, it looks like I need to (among other things):
-force bison to generate numbers for LHS nonterminals, numbers that do not
 overlap with the terminals' ones
-keep a tree node stack in parallel with the shift/reduce one, from which
 I will build the tree

I would appreciate any suggestions :)

a.




reply via email to

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