编译原理实验-递归下降的方法实现语法分析器

上传者: 41870552 | 上传时间: 2021-06-09 13:24:47 | 文件大小: 16KB | 文件类型: ZIP
(使用Python实现,注释详尽)在词法分析器的基础上,采用递归下降的方法实现算术表达式的语法分析器,以加深对自上而下语法分析过程的理解。 1、对算术表达式文法: E→TE' E'→+TE'| -TE' |ε T→FT' T'→*FT'| /FT' |ε F→(E) | id |num 构造其递归下降分析程序。

文件下载

资源详情

[{"title":"( 21 个子文件 16KB ) 编译原理实验-递归下降的方法实现语法分析器","children":[{"title":"语法分析","children":[{"title":"PL0_System_Lex.py <span style='color:#111;'> 7.96KB </span>","children":null,"spread":false},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"TestLab2","children":[{"title":"demo3.txt <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"demo1.txt <span style='color:#111;'> 16B </span>","children":null,"spread":false},{"title":"demo4.txt <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"demo5.txt <span style='color:#111;'> 5B </span>","children":null,"spread":false},{"title":"demo6.txt <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"demo2.txt <span style='color:#111;'> 14B </span>","children":null,"spread":false}],"spread":true},{"title":"Result_2","children":[{"title":"3.txt <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"5.txt <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 707B </span>","children":null,"spread":false}],"spread":true},{"title":"Lab_2.py <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 9.89KB </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"profiles_settings.xml <span style='color:#111;'> 174B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"语法分析.iml <span style='color:#111;'> 284B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 176B </span>","children":null,"spread":false}],"spread":true},{"title":"__pycache__","children":[{"title":"PL0_System_Lex.cpython-37.pyc <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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