Path: utzoo!utgpu!attcan!uunet!mcvax!enea!tut!jau From: jau@tut.fi (Jukka Ukkonen) Newsgroups: comp.unix.wizards Subject: Re: Multiple Lex Program Question Message-ID: <4402@uikku.tut.fi> Date: 26 Jul 88 17:30:30 GMT References: <690@galaxy> Organization: Tampere University of Technology, Finland Lines: 27 From article <690@galaxy>, by dave@andromeda.rutgers.edu.rutgers.edu (Dave Bloom): > Here's a question for all you lex(1) fanatics out there: > > What I need to do is create several lex functions to be > called from the same program at different times... so > instead of calling yylex(), I may want to call yylex_a(), > yylex_b()... etc. There is a program called 'flex' (for fast lex) that enables one to define the name (and even the call parameters if you wish) of the generated lex-function to avoid naming conflicts. The same supporting routines can be used for all lex-functions. It has many other advantages over the ordinary 'lex' as well. According to the manual page the author of flex is: Vern Paxson Real Time Systems Bldg. 46A Lawrence Barkeley Laboratory 1 Cyclotron Road Berkeley, CA 94720 Mail addresses: vern@lbl-csam.arpa ucbvax!lbl-csam!vern I hope this helps you to find a solution to your problem. - jau -