示例#1
0
        private void RunModuleTest()
        {
            var rdr    = new StringReader(llir);
            var parser = new LLVMParser(new LLVMLexer(rdr));
            var module = parser.ParseModule();

            Assert.AreEqual(sExp, module.ToString());
        }
示例#2
0
        public void LLPB_File()
        {
            using (var rdr = File.OpenText(@"D:\dev\uxmal\reko\LLVM\more_llvm\more_llvm\c4\c4.ll"))
            {
                var parser  = new LLVMParser(new LLVMLexer(rdr));
                var module  = parser.ParseModule();
                var program = new Program();
                mr.ReplayAll();

                var pb = new ProgramBuilder(sc, program);
                program = pb.BuildProgram(module);
            }
        }