how does one pass args to yyparse and yylex?

Dean NEWTON dean at cs.mcgill.ca
Sat Jan 26 04:26:31 AEST 1991


Two questions regarding yacc and lex:

1) How does one pass args to yyparse and yylex from a C program?

2) How can one declare local variables in yyparse and yylex?

I have managed to do both of these by using a sed script in my makefile,
but it's ugly.  There has to be a better way.

Thanks,

Kaveh Kardan
Taarna Systems
Montreal, Quebec, Canada
(posting from a friend's account)



More information about the Comp.lang.c mailing list