RegexToDFA:通过在Java中创建语法树直接将正则表达式(正则表达式)转换为DFA

上传者: 42160398 | 上传时间: 2023-04-11 20:27:19 | 文件大小: 1.36MB | 文件类型: ZIP
正则表达式到Java中的DFA 这是通过使用Java语言创建和使用语法树将regex(正则表达式)转换为DFA的方法。 该项目是我们在大学第五学期(@KNTU)的编译器课程中完成的一个较大项目的一部分,以创建一个简单的编译器。 入门 :small_blue_diamond: 观看此视频以了解概念: : 注意一些规则: NetBeans是我编写的IDE。您可以克隆此项目并将其轻松导入NetBeans。 使用的类如下: 正则表达式 语法树 二叉树 节点 叶节点 DfaTraversal 州 这是一个在主函数中调用的初始化方法: public static void initialize() { DStates = new HashSet<> (); input = new HashSet< String> (); String regex = getRegex(); getSymbols(regex); SyntaxTree st = new SyntaxTree (regex); root = st . getRoo

文件下载

资源详情

[{"title":"( 24 个子文件 1.36MB ) RegexToDFA:通过在Java中创建语法树直接将正则表达式(正则表达式)转换为DFA","children":[{"title":"RegexToDFA-master","children":[{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"assets","children":[{"title":"img","children":[{"title":"run1.PNG <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"rule3.PNG <span style='color:#111;'> 400.61KB </span>","children":null,"spread":false},{"title":"rule2.png <span style='color:#111;'> 323.73KB </span>","children":null,"spread":false},{"title":"rule1.PNG <span style='color:#111;'> 365.03KB </span>","children":null,"spread":false},{"title":"run2.PNG <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false}],"spread":true},{"title":"lexicalanalyzer-140419141804-phpapp01.pdf <span style='color:#111;'> 313.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"_config.yml <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"RegexToDfa_By_SyntaxTree","children":[{"title":"manifest.mf <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"regextodfa","children":[{"title":"Node.java <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"SyntaxTree.java <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"LeafNode.java <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"DfaTraversal.java <span style='color:#111;'> 846B </span>","children":null,"spread":false},{"title":"State.java <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"RegexToDfa.java <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"BinaryTree.java <span style='color:#111;'> 8.97KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build.xml <span style='color:#111;'> 3.46KB </span>","children":null,"spread":false},{"title":"nbproject","children":[{"title":"genfiles.properties <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.xml <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"private.properties <span style='color:#111;'> 114B </span>","children":null,"spread":false}],"spread":true},{"title":"build-impl.xml <span style='color:#111;'> 76.09KB </span>","children":null,"spread":false},{"title":"project.xml <span style='color:#111;'> 503B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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