Re: Several flex scanners share common rules/definitions?

Scott Nicol <snicol@apk.net>
28 Jun 2004 20:03:36 -0400

          From comp.compilers

Related articles
Several flex scanners share common rules/definitions? markus.cl@gmx.de (2004-06-26)
Re: Several flex scanners share common rules/definitions? cbarron413@adelphia.net (Carl Barron) (2004-06-28)
Re: Several flex scanners share common rules/definitions? snicol@apk.net (Scott Nicol) (2004-06-28)
Re: Several flex scanners share common rules/definitions? haberg@matematik.su.se (Hans Aberg) (2004-06-28)
Re: Several flex scanners share common rules/definitions? clint@0lsen.net (Clint Olsen) (2004-06-30)
Re: Several flex scanners share common rules/definitions? johnmillaway@yahoo.com (John Millaway) (2004-06-30)
Re: Several flex scanners share common rules/definitions? sjohnson@mathworks.com (Steve Johnson) (2004-07-13)
| List of all articles for this month |
From: Scott Nicol <snicol@apk.net>
Newsgroups: comp.compilers
Date: 28 Jun 2004 20:03:36 -0400
Organization: Compilers Central
References: 04-06-102
Keywords: lex
Posted-Date: 28 Jun 2004 20:03:36 EDT

On 26 Jun 2004 23:54:42 -0400, markus.cl@gmx.de (Markus Dehmann) wrote:
  >I have two scanners that use basically the same regular expressions
  >and differ only in a few details. How can I write the two lex files so
  >that I don't have to write the common things twice?


cat common.defs project.defs common.rules project.rules >project.l


If your needs are fancier, break it up into more files, or use awk, perl,
m4, sed, ...


--
Scott Nicol
snicol@apk.net


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.