std.d.lexer requirements

Jacob Carlborg doob at me.com
Mon Aug 6 12:20:33 PDT 2012


On 2012-08-06 21:00, Philippe Sigaud wrote:

> Yes, well we don't have a condition system. And using exceptions
> during lexing would most probably kill its efficiency.
> Errors in lexing are not uncommon. The usual D idiom of having an enum
> StopOnError { no, yes } should be enough.

Especially when if the lexer is used in an IDE. The code is constantly 
changing and will be invalid quite often.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list