public Expression Parse(string s, out bool result)
        {
            byte[] inputBuffer = Encoding.Default.GetBytes(s);
            MemoryStream stream = new MemoryStream(inputBuffer);
            Scanner = new BindingLanguageScanner(stream);

            result = Parse();
            if (result)
            {
                ProcessModeNodes(CurrentSemanticValue.Expression);
                return CurrentSemanticValue.Expression;
            }
            return null;
        }
Exemple #2
0
        public Expression Parse(string s, out bool result)
        {
            byte[]       inputBuffer = Encoding.Default.GetBytes(s);
            MemoryStream stream      = new MemoryStream(inputBuffer);

            Scanner = new BindingLanguageScanner(stream);

            result = Parse();
            if (result)
            {
                ProcessModeNodes(CurrentSemanticValue.Expression);
                return(CurrentSemanticValue.Expression);
            }
            return(null);
        }