Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2003 18:34:19 +0100 (CET)
From:      "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To:        freebsd-standards@FreeBSD.org
Subject:   Re: flex vs SUS?? (was flex vs POSIX)
Message-ID:  <20030116173419.56970.qmail@web13401.mail.yahoo.com>
In-Reply-To: <20030116085315.GA12863@falcon.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
You are right: -l would in fact break POSIX
compliance. The documentation (and code) is quite old
though. flex should be compared against the single
Unix Specification to see what's the current state. 

About the behaviour... I think lex should just be lex,
and flex must continue being flex :).

cheers,

    Pedro.

 --- Erik Trulsson <ertr1013@student.uu.se> ha
scritto: > 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.
> 
> 
> 
> 
> 
> -- 
> <Insert your favourite quote here.>
> Erik Trulsson
> ertr1013@student.uu.se 

______________________________________________________________________
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030116173419.56970.qmail>