Ejemplo n.º 1
0
        protected RCValue DoParse(RCParser parser, RCString right, bool canonical, out bool fragment)
        {
            RCArray <RCToken> tokens = new RCArray <RCToken> ();

            for (int i = 0; i < right.Count; ++i)
            {
                parser.Lex(right[i], tokens);
            }
            RCValue result = parser.Parse(tokens, out fragment, canonical);

            return(result);
        }
Ejemplo n.º 2
0
        public RCValue Read(string code)
        {
            bool fragment;

            return(_parser.Parse(_parser.Lex(code), out fragment, canonical: false));
        }