private string ParsePlainTextSingleLine(out bool success)
{
int errorCount = Errors.Count;
StringBuilder text = new StringBuilder();
int start_position = position;
int not_start_position1 = position;
ParseDocumentMarker(out success);
position = not_start_position1;
success = !success;
if (!success)
{
Error("Failed to parse !(DocumentMarker) of PlainTextSingleLine.");
position = start_position;
return text.ToString();
}
string str = ParsePlainTextFirstChar(out success);
if (success) { text.Append(str); }
else
{
Error("Failed to parse PlainTextFirstChar of PlainTextSingleLine.");
position = start_position;
return text.ToString();
}
while (true)
{
ErrorStatck.Push(errorCount); errorCount = Errors.Count;
while (true)
{
str = ParsePlainTextChar(out success);
if (success)
{
ClearError(errorCount);
text.Append(str);
break;
}
str = ParseSpacedPlainTextChar(out success);
if (success)
{
ClearError(errorCount);
text.Append(str);
break;
}
break;
}
errorCount = ErrorStatck.Pop();
if (!success) { break; }
}
success = true;
return text.ToString();
}