private Token NextEnclosedSymbol()
{
StringBuilder sb = new StringBuilder(10);
int ch;
ch = this.NextChar();
while (ch >= 0 && ch != '}')
{
sb.Append((char)ch);
ch = this.NextChar();
}
if (ch != '}')
new LexerException("Expected '}'");
Token token = new Token();
token.Type = TokenType.Symbol;
token.Value = sb.ToString();
return token;
}