135e874a7621988eafd4c3a0fc36fdf26a4df2fe
- 添加tree_dump库作为依赖项到ast模块 - 将ast_dump.h中的转储上下文结构替换为tree_dump.h中的统一实现 - 更新scc_ast_block_item_vec_t类型定义,支持stmt或decl的泛型指针 - 移除ast_dump.c中重复的缩进和上下文管理代码,使用tree_dump提供的功能 - 修改dump函数参数类型从scc_ast_dump_ctx_t为scc_tree_dump_ctx_t - 在libs目录下新增tree_dump库,包含完整的树形结构转储功能
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%