Lexers (again)

Timon Gehr timon.gehr at gmx.ch
Sun Dec 15 03:45:51 PST 2013


On 12/15/2013 12:12 PM, Brian Schott wrote:
> On Friday, 13 December 2013 at 10:17:49 UTC, Brian Schott wrote:
>> I've been working on the next attepmpt at a std.lexer / std.d.lexer
>> recently. You can follow the progress on Github here:
>> https://github.com/Hackerpilot/lexer-work
>
> I've ported DScanner over to this new lexer code. It's on a branch here:
> https://github.com/Hackerpilot/Dscanner/tree/NewLexer.
>
> One limitation I've noticed with the new tok!"tokenName" approach is
> that while dmd has no problem with
>
> case tok!"class":
>
> it does have a problem with
>
> goto case tok!"class":
>
> I managed to work around this by adding new labels and "goto"-ing them
> instead. Is this a bug or intentional?

I cannot reproduce your problem. If this does not work, it is a bug.


More information about the Digitalmars-d mailing list