Please, I'm trying to transfer the yyleng of the matched line from my (.l) file to the (.y) file. Here is an example of a problem:
In the Lex file:
<state1>.+ { fprintf(yyout, "%d", yyleng); }
In the Yacc file:
/ * I need to know the methodology used to get the specific yyleng yacc file. Should I use global variables? Or is there a specific way to solve this problem? * /
Thanks in advance for your help! ~ Any suggestions are highly appreciated.
lex bison yacc
CompilingCyborg
source share