DIP65: Fixing Exception Handling Syntax
Brian Schott via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 17 15:13:47 PDT 2014
On Thursday, 17 July 2014 at 22:07:41 UTC, Brian Schott wrote:
> On Thursday, 17 July 2014 at 21:44:02 UTC, Walter Bright wrote:
>> Writing such a tool is a major operation.
>
> // I disagree.
Posted a bit too soon. Should look more like this..
case tok!"catch":
size_t j = i + 1;
while (j < tokens.length && (tokens[j] == tok!"whitespace" ||
tokens[j] == tok!"comment"))
j++;
if (j < tokens.length && tokens[j].type != tok!"(")
{
The lexer code is here: https://github.com/Hackerpilot/libdparse
More information about the Digitalmars-d
mailing list