protected Token ReadNextStringOrRelType()
{
while (true)
{
char? c = ReadNextChar();
if (c == null)
return new Token { Type = TokenType.EOF };
if (c == '"')
return new Token { Type = TokenType.String, Value = ReadString() };
if (Char.IsLetter(c.Value))
return new Token { Type = TokenType.String, Value = ReadRelType(c.Value) };
Error(string.Format("Unrecognized character '{0}' for string or rel-type", c));
}
}