On Sunday, 27 January 2013 at 10:17:48 UTC, Philippe Sigaud wrote:
Last time we discussed it, IIRC, some people wanted the lexer
to stop
at once, other just wanted an Error token.
I personally prefer an Error token, but that means finding a
way to
start lexing again after the error (and hence, finding where
the error
ends).
I guess any separator/terminator could be used to re-engage the
lexer:
space, semicolon, closing brace, closing parenthesis?
Oh yes, that is very important. Conditions are perfect to handle
stuff like that.