private ParseEndOfDocument ( bool &success ) : void | ||
success | bool | |
return | void |
private void ParseEndOfDocument(out bool success)
{
int errorCount = Errors.Count;
int start_position = position;
MatchTerminalString("...", out success);
if (!success)
{
Error("Failed to parse '...' of EndOfDocument.");
position = start_position;
return;
}
ParseInlineComments(out success);
if (!success)
{
Error("Failed to parse InlineComments of EndOfDocument.");
position = start_position;
}
if (success) { ClearError(errorCount); }
}