home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!infoserv!rick
- From: rick@rick.infoserv.com (Rick Klement)
- Newsgroups: comp.lang.c
- Subject: Re: Question about lex
- Message-ID: <50.30116@rick.infoserv.com>
- Date: 14 Aug 92 03:52:19 GMT
- References: <1992Aug13.145803.3008@ccd.harris.com>
- Organization: Rick's Place, San Jose, CA, USA
- Lines: 21
-
- In article <1992Aug13.145803.3008@ccd.harris.com>, djs@controls.ccd.harris.com (Dan J. Smith) writes:
- > I'm trying to call the lex output functions generated by two different lex input
- > files from the same program. But, they both generate output functions called
- > yylex and have the same global variables so this does not work.
- >
- > My question is: Is there any way to link two lex output files into
- > the same program. I've had several ideas but they turned into dead ends pretty
- > quickly.
-
- That's what
-
- sed 's/yy/zz/g' some_lex_output_file.c >modified_lex_output_file.c
-
- is for...
- --
- Rick Klement - email: rick@infoserv.com
-
- #include <standard.disclaimer>
- A respected software manager once said: "There may even be some
- Computer Science graduates that can actually do useful programming." or
- something like that. I know who but I'm not telling...
-