From owner-freebsd-standards Thu Jan 16 0:53:22 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACA6137B401 for ; Thu, 16 Jan 2003 00:53:20 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 4AFDD43F1E for ; Thu, 16 Jan 2003 00:53:19 -0800 (PST) (envelope-from erikt@falcon.midgard.homeip.net) Received: (qmail 12972 invoked by uid 1001); 16 Jan 2003 08:53:15 -0000 Date: Thu, 16 Jan 2003 09:53:15 +0100 From: Erik Trulsson To: "Pedro F. Giffuni" Cc: freebsd-standards@FreeBSD.org Subject: Re: flex vs POSIX Message-ID: <20030116085315.GA12863@falcon.midgard.homeip.net> Mail-Followup-To: "Pedro F. Giffuni" , freebsd-standards@FreeBSD.org References: <20030116051040.74303.qmail@web13407.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030116051040.74303.qmail@web13407.mail.yahoo.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 16, 2003 at 06:10:40AM +0100, Pedro F. Giffuni wrote: > Hi; > > I'm reading the flex(1) manpage, in particular the > section "INCOMPATIBILITIES WITH LEX AND POSIX". I hate > to suggest this for the performance implications it > might bring, but for compliance reasons perhaps the -l > option (maximum compatibility) should be turned on > when flex is called as lex. Probably not. Reading the section you note it seems that flex is already compliant with POSIX (with one small exception that -l doesn't help with.) Flex has many extensions that are not in POSIX, but since these shouldn't be used by portable lexers anyway it doesn't matter. The -l option seems to turn on maximum compatibility, not with the standard, but with the original lex implementation. Today there are probably at least as many programs that depend on the behaviour of flex as there are that depend on the behaviour of the original implementation. > > cheers, > > Pedro. > > ps. Of course... this could break a lot of stuff if > done right now. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message