You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structParseContext
{
ParseErrorlast_parse_error;
...
}
fnString! parse_string(ParseContext*c)
{
...
if (something_bad)
{
c.last_parse_error=new_parse_error("Something Bad Happened at line %d", context.line);
returnParseError.SOMETHING_BAD?;
}
}
In some cases one could imagine it looking like this:
fnString! parse_string(ParseContext*c)
{
...
if (something_bad)
{
returnc.add_error(SOMETHING_BAD, "Something Bad Happened at line %d", context.line);
}
}
And it would be equivalent to the code above.
The text was updated successfully, but these errors were encountered:
In some cases one could imagine it looking like this:
And it would be equivalent to the code above.
The text was updated successfully, but these errors were encountered: