https://github.com/plusls/ast-interpreter
基于 clang-10 实现的 简单的 c 语言解释器
https://github.com/plusls/ast-interpreter
Last synced: about 2 months ago
JSON representation
基于 clang-10 实现的 简单的 c 语言解释器
- Host: GitHub
- URL: https://github.com/plusls/ast-interpreter
- Owner: plusls
- Created: 2020-10-27T12:21:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T12:29:47.000Z (over 5 years ago)
- Last Synced: 2025-03-22T14:44:07.671Z (about 1 year ago)
- Language: C++
- Size: 14.3 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ast-interpreter
基于 clang-10 实现的 c 语言解释器
## 实现细节
表达式运算结果全部使用 map 存储
return 使用抛出异常实现
## 测试结果
test: 20/20
mytest: 12/12
classtest: 25/25
## 参考资料
https://github.com/ycdxsb/ast-interpreter