Number literals (Was: Re: Case Range Statement ..)

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Jul 8 00:25:22 PDT 2009


Walter Bright wrote:
> BCS wrote:
>> Hello Walter,
>>
>>> Jarrett Billingsley wrote:
>>>
>>>> Totally agree.  They're cruft that just complicate lexical analysis.
>>>>
>>> Not a significant issue, as the code to lex it is done, works, and is
>>> readily available.
>>>
>>
>> But that assumes that just using the lexer is acceptable. What if
>> someone needs to generate there own lexer? Say in a different
>> language, like D?. Or they want to generate a token highlighter?
> 
> Oh please, it's trivial to translate.
> 

Been there. Trivial, but really obnoxious for this and a few other
points. My ll(k) lexer grammar is ugly and hackish, and probably still
buggy.



More information about the Digitalmars-d mailing list