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.