Path: csiph.com!goblin3!goblin.stu.neva.ru!news.misty.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: Wed, 29 Mar 2017 06:42:24 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 25 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <17-03-017@comp.compilers> References: <17-03-013@comp.compilers> <17-03-014@comp.compilers> <17-03-015@comp.compilers> <17-03-016@comp.compilers> Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="14193"; mail-complaints-to="abuse@iecc.com" Keywords: lex Posted-Date: 29 Mar 2017 10:35:40 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:1838 On 2017-03-29, Hans-Peter Diettrich wrote: > Am 28.03.2017 um 19:32 schrieb Kaz Kylheku: > >> A nice feature in Flex might be parametrized named regexes: >> >> You know how we can define >> >> ALF [A-Z]+ >> >> and later use >> >> {ALF} > [...] > > This reminds me of CoCo/R, where such constructs and extensions are > available since decades. The above snippet refers to a feature of Lex that is already described in the original 1975 paper "Lex --- A Lexical Analyzer Generator" by M. E. Lesk and E. Schmidt. It should probably remind everyone of, oh, #define ALF. The extension I proposed is on the level of #define MAC(X).