Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!bloom-beacon!mit-hermes!iuvax!pur-ee!uiucdcs!uiucdcsb!kenny From: kenny@uiucdcsb.cs.uiuc.edu Newsgroups: comp.unix.questions Subject: Re: Lex and YACC C output Message-ID: <166400004@uiucdcsb> Date: Sun, 2-Aug-87 16:35:00 EDT Article-I.D.: uiucdcsb.166400004 Posted: Sun Aug 2 16:35:00 1987 Date-Received: Tue, 4-Aug-87 00:55:13 EDT References: <7846@auspyr.UUCP> Lines: 39 Nf-ID: #R:auspyr.UUCP:7846:uiucdcsb:166400004:000:1807 Nf-From: uiucdcsb.cs.uiuc.edu!kenny Aug 2 15:35:00 1987 /* Written 9:05 pm Jul 30, 1987 by allbery@ncoast.UUCP in uiucdcsb:comp.unix.questions */ |As quoted from <7846@auspyr.UUCP> by john@auspyr.UUCP (John Weald): |+--------------- || Has anybody taken the C source code produced from Lex and YACC and ported || it to many different UNIX boxes and other operating systems |+--------------- | |DOING THIS IS A VIOLATION OF YOUR UN*X LICENSE!!! | |Yacc output contains /usr/lib/yaccpar; lex output contains |/usr/lib/lex/ncform. Both are covered by license agreement and trade |secret. DO NOT MOVE LEX OR YACC OUTPUT BETWEEN MACHINES! | |An alternative: GNU Bison (PD yacc), and I understand there is now a GNU lex. | /* End of text from uiucdcsb:comp.unix.questions */ Uh, that argument almost certainly would fall flat in court. The C code that YACC generates bears no indication in its commentary that it has been removed from /usr/lib (the SCCS line suggests that it is found somewhere, but...), and the license agreement states nothing about porting the OUTPUT generated by system commands to other systems; imagine if they considered all the output generated by printf to be covered by the license agreement? The man page from yacc mentiones /usr/lib/yaccpar but does not explicitly state that its code is copied to yacc's output, nor does it mention any restrictions on the use of the output. The yacc manual doesn't even discuss yaccpar. A naive user could *easily* fail to realize that there is any licensing violation involved. So easily, in fact, that a court would probably conclude that ATT didn't intend moving the code to be a violation. After all, there are parts of the system code (the decimal point in printf comes to mind) that HAVE to be disclosed regularly or the system is useless for any purpose whatever. kBk [not a lawyer]