Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Kaz Kylheku <336-986-7787@kylheku.com> Newsgroups: comp.compilers Subject: Re: [ANN] RE/flex 0.9.18 - a Flex-like lexical analyzer generator for C++ Date: Tue, 28 Mar 2017 17:32:21 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 44 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <17-03-015@comp.compilers> References: <17-03-013@comp.compilers> <17-03-014@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="25574"; mail-complaints-to="abuse@iecc.com" Keywords: lex, comment Posted-Date: 28 Mar 2017 15:27:17 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1836 On 2017-03-28, C BergstrC6m wrote: > Cool! > > Is this meant as a flex drop-in replacement? iirc (we) PathScale have > sent patches to upstream Flex before and I don't remember if they were > responsive or not. If you are 1:1 compatible, have you tried to > replace the system flex and rebuild world or how extensively has this > been validated? You may find the BSD community to be interested and > empathetic if it can help them. A nice feature in Flex might be parametrized named regexes: You know how we can define ALF [A-Z]+ and later use {ALF} ? OK; now what if we could have us some params: FOO{X} [0-9]{X}+# then: {FOO Z} /* expands to [0-9](Z)+# */ Thumbs up? Down? Multiple params def: FOO{X Y Z} ... {X} ... {Y}+{Z} Multiple params ref: {FOO [^x] . {ALF}} Cheers ... [You could whip that up in an hour as a preprocessor to flex, you know. -John]