Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!news.cs.indiana.edu!nstn.ns.ca!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!quiche!dean From: dean@cs.mcgill.ca (Dean NEWTON) Newsgroups: comp.lang.c Subject: how does one pass args to yyparse and yylex? Message-ID: <1991Jan25.172631.15595@cs.mcgill.ca> Date: 25 Jan 91 17:26:31 GMT Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: SOCS, McGill University, Montreal, Canada Lines: 15 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)