how does one pass args to yyparse and yylex?

Brian Bliss bliss at sp64.csrd.uiuc.edu
Sat Feb 2 07:01:13 AEST 1991


 to declare a parameter to yyparse(), you can use a define:

 #define yyparse()	myparse(x)  <type> x;

 This makes x a parameter to yyparse().

 You can do the same with lex.
   



More information about the Comp.lang.c mailing list