Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1836
| 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 | 2017-03-28 17:32 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <17-03-015@comp.compilers> (permalink) |
| References | <17-03-013@comp.compilers> <17-03-014@comp.compilers> |
On 2017-03-28, C BergstrC6m <cbergstrom@pathscale.com> 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]
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[ANN] RE/flex 0.9.18 - a Flex-like lexical analyzer generator for C++ Robert van Engelen <ravengelen@gmail.com> - 2017-03-27 16:58 -0700
Re: [ANN] RE/flex 0.9.18 - a Flex-like lexical analyzer generator for C++ C Bergström <cbergstrom@pathscale.com> - 2017-03-28 18:03 +0800
Re: [ANN] RE/flex 0.9.18 - a Flex-like lexical analyzer generator for C++ Kaz Kylheku <336-986-7787@kylheku.com> - 2017-03-28 17:32 +0000
Re: [ANN] RE/flex 0.9.18 - a Flex-like lexical analyzer generator for C++ Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2017-03-29 02:13 +0200
Re: [ANN] RE/flex 0.9.18 - a Flex-like lexical analyzer generator for C++ Kaz Kylheku <336-986-7787@kylheku.com> - 2017-03-29 06:42 +0000
csiph-web