示例#1
0
        //----< attempt to open source of tokens >-----------------------

        /*
         * If src is successfully opened, it uses TokenState.nextState(context_)
         * to set the initial state, based on the source content.
         */
        public bool open(string path)
        {
            TokenSourceFile src = new TokenSourceFile(context_);

            context_.src = src;
            return(src.open(path));
        }
示例#2
0
        public bool Open(string path)
        {
            TokenSourceFile source = new TokenSourceFile(context);

            context.source = source;
            return(source.Open(path));
        }