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 not like to print the node, insteed
the printf(???) should output "if a then b". Is this possible?


_______________________________________________
[EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to