From owner-freebsd-hackers Tue Apr 22 13:14:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA29876 for hackers-outgoing; Tue, 22 Apr 1997 13:14:38 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id NAA29871 for ; Tue, 22 Apr 1997 13:14:36 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA26924; Tue, 22 Apr 1997 13:11:39 -0700 From: Terry Lambert Message-Id: <199704222011.NAA26924@phaeton.artisoft.com> Subject: Re: flex vs. lex To: henrich@crh.cl.msu.edu (Charles Henrich) Date: Tue, 22 Apr 1997 13:11:39 -0700 (MST) Cc: freebsd-hackers@freebsd.org In-Reply-To: <19970421215130.42112@crh.cl.msu.edu> from "Charles Henrich" at Apr 21, 97 09:51:30 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Does anyone know how to take an old program that depends on lex quirkiness > (such as rewriting input() ) and make it work with flex? Any pointers? I've > been searching for an hour now and havent found a thing :( Use the "-l" argument to flex. Use "man lexdoc". Also see the O'Reilly book on yacc and lex; it has a section on converting code. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.