I am currently using: yytname[yyr1[yyn]] to access the name of the rule that each action is associated with. For example:
program: classes { printf("rule: %s\n",yytname[yyr1[yyn]]);} ; Is this the recommended way to do this, or is there a better way? Thanks. -Tom _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison