Le 29 janv. 2010 à 03:11, Aurelien Tran a écrit :
> I know that this is the general way to do this but the lexer is in fact an
> external module that I cant modify. I would like to avoid rewriting all the
> token and their value in another file. If need to I will but I would to
> avoid it in orde
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
__