164bab0f133117a91365b5122c0a6d3dd30ac6bc
修正了关键字表的注释,明确要求其必须按字典序排列以确保二分查找正确性。 在词法分析过程中,修复标识符解析时对 `cstring` 的使用问题,并调整 token 类型赋值顺序, 避免潜在的未定义行为。同时新增测试文件用于验证操作符、关键字及各类字面量的识别准确性, 并更新测试运行器的日志级别控制参数。
Simple Models C Compiler
Smaller Compiler(SMCC)
This is a simple C compiler that generates executable code from a simple c99 sub programming language. The language supports basic operations such as arithmetic, logical, conditional statements and if else while for switch case statements and function calls and system calls.
Features
-
隔离标准库
-
轻量化
-
模块化
-
自举构建
Description
Languages
C
69.5%
C++
26.3%
Python
3.3%
Makefile
0.9%