JavaCppTranslator:一个 Java 到 C++ 的翻译器-源码

上传者: 42101720 | 上传时间: 2021-07-06 17:07:05 | 文件大小: 1.95MB | 文件类型: ZIP
一个java到cpp的翻译器 在我大三的秋季学期为我的面向对象编程课程完成的最后一个项目。 我和其他四人组成的团队创建了一个 java to c plus plus 翻译器,它将 java 对象和类解释为 c++ 结构和 vtables。 完成时并没有完全完成,代码中仍然存在错误。 该项目使用了一个名为 xtc 的 API,它为 Java 语法提供了抽象语法树。 我对该项目最值得称道的贡献是实现了模拟动态转换和方法重载/继承的智能指针。 除此之外,还有其他杂项任务。 您需要一个名为 xtc 的 Java 库。 “制作程序” “java Sentinel [java 测试文件的名称]” “g++ main.h” “g++ main.cc” “./a.out” 完毕

文件下载

资源详情

[{"title":"( 64 个子文件 1.95MB ) JavaCppTranslator:一个 Java 到 C++ 的翻译器-源码","children":[{"title":"JavaCppTranslator-master","children":[{"title":".main.h.swp <span style='color:#111;'> 16.00KB </span>","children":null,"spread":false},{"title":"ptr.h <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"JavaMethod.java <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":".main.h.swo <span style='color:#111;'> 16.00KB </span>","children":null,"spread":false},{"title":"JavaGlobalVariable.java <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":"Sentinel.java <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"SymbolTableBuilder.java <span style='color:#111;'> 26.89KB </span>","children":null,"spread":false},{"title":"referenceFiles","children":[{"title":"objectStructs.ref <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"PrinterVisitor.ref <span style='color:#111;'> 14.27KB </span>","children":null,"spread":false},{"title":"refmain.cc <span style='color:#111;'> 7.74KB </span>","children":null,"spread":false},{"title":"arrayMethods.ref <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"structDataDeclarator.java.ref <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"objectMethods.ref <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false},{"title":"arrayStructs.ref <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 788B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"JavaObject.java <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"HeaderFileWriter.java <span style='color:#111;'> 18.53KB </span>","children":null,"spread":false},{"title":"MethodsWriter.java <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"CustomVisitor.java <span style='color:#111;'> 12.76KB </span>","children":null,"spread":false},{"title":"sh.sample <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"Test010.java <span style='color:#111;'> 624B </span>","children":null,"spread":false},{"title":"Test014.java <span style='color:#111;'> 274B </span>","children":null,"spread":false},{"title":"Test005.java <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"Test022.java <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"Test032.java <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"Test026.java <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"Test030.java <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"Test004.java <span style='color:#111;'> 264B </span>","children":null,"spread":false},{"title":"Test039.java <span style='color:#111;'> 635B </span>","children":null,"spread":false},{"title":"Test002.java <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"Test021.java <span style='color:#111;'> 225B </span>","children":null,"spread":false},{"title":"Test035.java <span style='color:#111;'> 316B </span>","children":null,"spread":false},{"title":"Test016.java <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"Test019.java <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"Test003.java <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"Test031.java <span style='color:#111;'> 386B </span>","children":null,"spread":false},{"title":"Test034.java <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"Test011.java <span style='color:#111;'> 615B </span>","children":null,"spread":false},{"title":"Test013.java <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"Test036.java <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"Test037.java <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"Test020.java <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"Test023.java <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"Test008.java <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":"Test001.java <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"Test028.java <span style='color:#111;'> 253B </span>","children":null,"spread":false},{"title":"Test038.java <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Test029.java <span style='color:#111;'> 300B </span>","children":null,"spread":false},{"title":"Test033.java <span style='color:#111;'> 639B </span>","children":null,"spread":false},{"title":"Test018.java <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"Test012.java <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"Test007.java <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"Test024.java <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"Test025.java <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"Test015.java <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"Test006.java <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"Test027.java <span style='color:#111;'> 429B </span>","children":null,"spread":false},{"title":"Test009.java <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"Test017.java <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":false},{"title":"xtc-core-2.4.0.zip <span style='color:#111;'> 2.02MB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"SymbolTablePrinter.java <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"JavaClass.java <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明