コード例 #1
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;
        }
コード例 #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);
        }