std.d.lexer requirements
Jacob Carlborg
doob at me.com
Tue Aug 7 11:57:25 PDT 2012
On 2012-08-07 12:06, Jonathan M Davis wrote:
> It's easier to see where in the range of tokens the errors occur. A delegate
> is disconnected from the point where the range is being consumed, whereas if
> tokens are used for errors, then the function consuming the range can see
> exactly where in the range of tokens the error is (and potentially handle it
> differently based on that information).
Just pass the same token to the delegate that you would have returned
otherwise?
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list