1. 首页
  2. 编程语言
  3. C
  4. C/C++表达式解析(可用于脚本解析功能实现)

C/C++表达式解析(可用于脚本解析功能实现)

上传者: 2019-05-13 19:43:17上传 ZIP文件 125.49KB 热度 57次
Asimplecommandlinecalculatorthatusesarecursivedescentparser,writteninC.Madeasanexerciseintokenizingandparsing...##SupportedfeaturesBelowistheBNFoftheparser.ThefunctionsarenamedandbehavethesameasthosefoundinC64BASIC.expression=["+"|"-"]term{("+"
下载地址
用户评论
码姐姐匿名网友 2019-05-13 19:43:17

可以借鉴大概算法

码姐姐匿名网友 2019-05-13 19:43:17

可以参考,不是很全!

码姐姐匿名网友 2019-05-13 19:43:17

是用c写的,运行环境好像是linux?(看文件夹中的截图判断的)程序无任何注释,小白表示看不懂。然后又不能直接放在vs里运行……略郁闷 总体看着很高大上