std.d.lexer : voting thread
Dmitry Olshansky
dmitry.olsh at gmail.com
Fri Oct 11 03:03:15 PDT 2013
02-Oct-2013 18:41, Dicebot пишет:
> After brief discussion with Brian and gathering data from the review
> thread, I have decided to start voting for `std.d.lexer` inclusion into
> Phobos.
>
I'd have to answer as NO.
In order to get to a YES state, it needs:
a) Use tok!"==" notation (in line with generic lexer). It makes it far
more convenient in the parser down the road as well.
b) Ideally use generic lexer framework but it makes for 2 modules to
include, so just make it easy to switch to later (no breakage etc.)
c) Abstract away string table, let user provide his own hooks for that,
and provide a default StringCache.
d) Allow operation w/o StringTable at all (make it optional) including
"just slice the input" mode.
P.S. I'm not a fun of etc.d.lexer. Instead a dub repo seems like a good
place for the moment, for these who need it right now. Other may
collectively wait for or help in getting to perfection.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list