Re: viewing parse tree
At 05:08 +0400 2005/04/14, hz kto wrote: I was wondering are there any tools out there that allow to view bison parse tree in graphics some sort of pseudo graphics, or any other way to help understand which branches of the parse tree depend on a particular grammar element. For example I want to find out all branches that might contain multiplication. If you want to see that parse tree, Bison does not provide any such thing, though there is a -g option, letting you to get a VCG graph of the pushdown automaton that Bison generates. You might inquiry in the group comp.compilers for such tools. In Bison, one uses normally the hands on approach, adding the stuff by hand the rule actions. -- Hans Aberg ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
$B!y(B10000$B1_J,L5NA!y(B
$B"#"#"#!V(B1$B1_!WJ,L5NA%]%$%s%HB#Dh%-%c%s%Z!<%se$2$^$9!*(B $B"!(B1$B1_L5NA%]%$%s%H$H?7$7$$=P2q$$(BGET$B!*"*"*"*(B http://awg.qsv20.com/?springd $B!zL5NA$GAjEvM7$Y$^$9$N$G@'Hs$*;n$72<$5$$$M"v(B $B!z;HMQ$7$F$_$F!V$3$l$O!*!W$H;W$C$FD:$$$?J}$N$_!VM-NA!W$X$*?J$_2<$5$$!#(B ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
Re: viewing parse tree
On Thursday 14 April 2005 03.08, hz kto wrote: > I was wondering are there any tools out there that allow to view bison > parse tree in graphics some sort of pseudo graphics I recently discovered a tool: ebnf2ps by Peter Thiemann. www.informatik.uni-freiburg.de/~thiemann/haskell/ebnf2ps it can take a yacc file as input and generate a postscript file showing the syntax diagrams. Combined with LaTex, I used it to generate an online reference manual for the pl1gcc project (pl1gcc.sourceforge.net) click on manual to see a sample Hope this helps you, > thanks in advance > Alex Henrik ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison