zzy 164bab0f13 fix(lexer): 修复词法分析器中的关键字比较与字符串处理逻辑
修正了关键字表的注释,明确要求其必须按字典序排列以确保二分查找正确性。
在词法分析过程中,修复标识符解析时对 `cstring` 的使用问题,并调整 token 类型赋值顺序,
避免潜在的未定义行为。同时新增测试文件用于验证操作符、关键字及各类字面量的识别准确性,
并更新测试运行器的日志级别控制参数。
2025-11-20 22:49:22 +08:00
2025-04-05 23:11:39 +08:00

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
No description provided
Readme 506 KiB
Languages
C 69.5%
C++ 26.3%
Python 3.3%
Makefile 0.9%