Re: print reduced input string

2005-08-22 Thread Hans Aberg
On 21 Aug 2005, at 18:35, Andreas Wapf wrote: How is it possible to print out the input value reduced by a rule inside an action . As an example: stmts:stmts, stmt | stmt { printf(???); } For example stmt is an "if a then b" statement. The $1 value of

print reduced input string

2005-08-21 Thread Andreas Wapf
Hello How is it possible to print out the input value reduced by a rule inside an action . As an example: stmts:stmts, stmt | stmt { printf(???); } For example stmt is an "if a then b" statement. The $1 value of this stmt returns me a "if" node. I do