Parsing D Maybe Not Such a Good Idea <_<;

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 15 00:16:31 PDT 2016


On Wednesday, 15 June 2016 at 05:51:53 UTC, cy wrote:
> On Wednesday, 15 June 2016 at 04:59:59 UTC, Basile B. wrote:
>> After lexing you can remove all the tokComment and everything 
>> becomes simple.
>
> Well, let's see. Using this libdparser thing, now I have a [...]
> I think we have different definitions of the word "simple." D 
> syntax is hella complex.
>
> (Either that or different definitions of the word "everything.")

You're right it's not so simple and you're also right about 
"everything", my "everything" is not used adequatly... It depends 
on the grammatical construct you want to parse. But it's already 
much more simple when the comments are removed from the lexical 
token list.


More information about the Digitalmars-d mailing list