Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2012 22:51:29 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        current@FreeBSD.org, hackers@FreeBSD.org
Subject:   flex or reflex
Message-ID:  <20120108215129.GA77039@azathoth.lan>

next in thread | raw e-mail | index | archive | help

--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I am willing to update our flex in base, my first motivation is to be able to
have reentrant lexer in base, I first went to the http://flex.sourceforge.net
derivative from flex 2.5.4, I've imported it in contrib, and I'm able to build
the whole base using the 2.5.35 version (almost vanilla) and with just one or
two small fixes from from .l files (mostly adding %option nounistd to fix
warnings) One of the major "problem" of this version is that it uses m4 (it is
compatible with our m4 version in base - the recently updated one).

Another alternative is to use reflex
(http://www.invisible-island.net/reflex/reflex.html) which seems a good one
because, it is more respectful of the POSIX lex unfortunately it doesn't seem to
be able to create reentrant lexer.

Given this, I think it is better for us to choose flex.

Of course it is still possible to add reentrant feature to our flex, but it
would be more painful.

After this I plan to import byacc
http://www.invisible-island.net/byacc/byacc.html which can generate reentrant
parser.

regards,
Bapt

--7AUc2qLy4jB3hD7Z
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk8KD+EACgkQ8kTtMUmk6EyiXACglK0W+uALd7MIRAu3reItkShs
uR4An04psiQyxSHWLJYjWL4268o13qsW
=xJks
-----END PGP SIGNATURE-----

--7AUc2qLy4jB3hD7Z--



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