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

月月._. 56 0 ZIP 2019-05-13 19:05:17

Asimplecommandlinecalculatorthatusesarecursivedescentparser,writteninC.Madeasanexerciseintokenizingandparsing...##SupportedfeaturesBelowistheBNFoftheparser.ThefunctionsarenamedandbehavethesameasthosefoundinC64BASIC.expression=["+"|"-"]term{("+"

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-05-13 19:05:17

可以借鉴大概算法

Generic placeholder image 卡了网匿名网友 2019-05-13 19:05:17

可以参考,不是很全!

Generic placeholder image 卡了网匿名网友 2019-05-13 19:05:17

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