https://github.com/raytlty/pycomlier
Xidian University编译原理上机
https://github.com/raytlty/pycomlier
Last synced: over 1 year ago
JSON representation
Xidian University编译原理上机
- Host: GitHub
- URL: https://github.com/raytlty/pycomlier
- Owner: Raytlty
- Created: 2015-03-01T11:57:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-01T12:36:29.000Z (over 11 years ago)
- Last Synced: 2025-02-07T07:46:28.291Z (over 1 year ago)
- Language: Python
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
************PyComplier************
Scanner:词法分析器
Parser:语法分析器
GUI:图形界面
Main:主程序入口
输入数据可以为整数,小数,也可以为分数,某些数学函数要注意定义域
比如math.log取值不可以从0开始.
应用的开始只需要传入文件名,调用GUI_TEST就可以画图图案
正则表达式:r'(\d+\.\d+[eE][-+]?\d+|\d+\.\d*|[0-9]\d*|0[0-7]+|0x[0-9a-fA-F]+|[a-zA-Z_]\w*|\|\||\+|\-[-]?|\*[*]?|/[/]?|=|\?|:|,|;|\(|\)|\[|\]|\{|\}|\'|\")'