예제 #1
0
파일: Lalr1.cs 프로젝트: wushian/pck
        public static CfgLalr1ParseTable ToLalr1ParseTable(this CfgDocument cfg, IProgress <CfgLalr1Progress> progress = null)
        {
            CfgLalr1ParseTable result = null;
            var msgs = TryToLalr1ParseTable(cfg, progress, out result);

            CfgException.ThrowIfErrors(msgs);
            return(result);
        }
예제 #2
0
파일: Lalr1.cs 프로젝트: wushian/pck
        public static Lalr1Parser ToLalr1Parser(this CfgDocument cfg, IEnumerable <Token> tokenizer, IProgress <CfgLalr1Progress> progress = null)
        {
            Lalr1Parser parser;
            var         res = TryToLalr1Parser(cfg, out parser, tokenizer, progress);

            CfgException.ThrowIfErrors(res);
            return(parser);
        }
예제 #3
0
        public static void WriteClassTo(CfgDocument cfg, string name, string @namespace, string language, IProgress <CfgLL1Progress> progress, TextWriter writer)
        {
            var msgs = TryWriteClassTo(cfg, name, @namespace, language, progress, writer);

            CfgException.ThrowIfErrors(msgs);
        }
예제 #4
0
파일: LL1.cs 프로젝트: wushian/pck
        public static void PrepareLL1(this CfgDocument cfg, IProgress <CfgLL1Progress> progress = null)
        {
            var msgs = TryPrepareLL1(cfg, progress);

            CfgException.ThrowIfErrors(msgs);
        }