Exemplo n.º 1
0
        private void ExpectAssignOperator(Token <SimpleTokenizer.TokenType> token)
        {
            if (token.Length == 1)
            {
                if (token[0] == ':')
                {
                    _currentHandler = HandleValue;
                    return;
                }

                if (token[0] == ',')
                {
                    _reader.OnAttributeNull();
                    _currentHandler = HandleAttributeName;
                    return;
                }
            }

            throw new FormatException("Expected :");
        }