help-bison
[Top][All Lists]
Advanced

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

print reduced input string


From: Andreas Wapf
Subject: print reduced input string
Date: Sun, 21 Aug 2005 18:35:41 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050331)

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?




reply via email to

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