示例#1
0
        static bool GetKeyValuePair(
            Lex lex,
            out string key,
            out string value)
        {
            key   = lex.Get();
            value = null;
            if (String.IsNullOrEmpty(key))
            {
                return(false);
            }
            lex.GetExpected("=");
            value = lex.Get();

            key   = Lex.RemoveAllQuotes(key).Trim();
            value = Lex.RemoveAllQuotes(value).Trim();
            return(true);
        }