Xref: utzoo comp.lang.c:26129 comp.misc:8243 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ernie.Berkeley.EDU!jwl From: jwl@ernie.Berkeley.EDU (James Wilbur Lewis) Newsgroups: comp.lang.c,comp.misc Subject: Re: Legal uses of lex & yacc Message-ID: <34421@ucbvax.BERKELEY.EDU> Date: 21 Feb 90 07:06:18 GMT References: <90049.104719MCCABE@MTUS5.BITNET> <271@xyzzy.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: jwl@ernie.Berkeley.EDU.UUCP (James Wilbur Lewis) Organization: University of California, Berkeley Lines: 25 In article <271@xyzzy.UUCP> kan@tom.dg.com () writes: -In article <90049.104719MCCABE@MTUS5.BITNET> MCCABE@MTUS5.BITNET (Jim McCabe) writes: ->Is it legal to ->use a yacc-generated compiler (and a lex-generated lexical analyzer) ->for part of a public-domain software package? - -But if you intend to distribute only C code, i.e. after you've run -your work through the "Official" Lex and Yacc, you can be prosecuted -for copyright infringement! That's because Lex and Yacc include -copyrighted data files into their analyzers and parsers -(/usr/lib/lex/n[cr]form and /usr/lib/yaccpar, respectively). I just looked; none of these files contain copyright notices. It'd be silly to copyright those files, because that would render these tools useless for commercial software development! You couldn't even distribute the binaries because they're derivative works (right?) (The Bison skeleton is another story -- the reason it's copyrighted is not to *prevent* copying, but to *encourage* people to share their (and FSF's!) code.) -- Jim Lewis U.C. Berkeley