From owner-freebsd-current@FreeBSD.ORG Sun Jan 8 21:51:33 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB92E106566B; Sun, 8 Jan 2012 21:51:33 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C3ACE8FC0A; Sun, 8 Jan 2012 21:51:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q08LpXLt079607; Sun, 8 Jan 2012 21:51:33 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q08LpXJG079606; Sun, 8 Jan 2012 21:51:33 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Sun, 8 Jan 2012 22:51:29 +0100 From: Baptiste Daroussin To: current@FreeBSD.org, hackers@FreeBSD.org Message-ID: <20120108215129.GA77039@azathoth.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: flex or reflex X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2012 21:51:34 -0000 --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--