https://github.com/chengzeyi/sharpccompiler
Simple compiler. 自制简单语言编译器
https://github.com/chengzeyi/sharpccompiler
compiler lexical-analyzer parser
Last synced: 9 months ago
JSON representation
Simple compiler. 自制简单语言编译器
- Host: GitHub
- URL: https://github.com/chengzeyi/sharpccompiler
- Owner: chengzeyi
- Created: 2018-07-23T14:18:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T16:08:53.000Z (almost 8 years ago)
- Last Synced: 2025-10-04T19:34:48.183Z (9 months ago)
- Topics: compiler, lexical-analyzer, parser
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 简单编译器
## 支持代码示例
```Simple C-like language
// This is a comment.
int integer;
int count;
count = 10;
output("Hello! Please enter an integer:\n");
input(integer);
if(integer > 100)
integer = integer + 1;
else
integer = integer - 1;
while(count > 0)
{
integer = integer + 2;
count = count - 1;
}
output("The result is: ");
output(integer);
output(".\n");
```
No complex expression.
No function calling.
No type conversion.
## 目前已完成
- Lexical analyzer
- Parser