zzy 47b56d52f6 feat(core): 重构词法分析器流接口并迁移至 core 库
将 lexer_stream 抽象为 core_stream,统一运行时核心组件的输入流模型。
移除了旧的 `lexer_stream.h` 定义,并将其功能完整迁移至 `core_stream.h` 中。
更新了内存流实现以适配新的 core_stream 接口,并修复部分资源释放问题。
同时调整日志模块包含方式,增强模块间解耦能力。

此变更影响词法分析器对输入流的操作方式,所有涉及 stream 的类型与函数均已替换为 core 前缀版本。
测试用例同步更新并验证通过。
2025-11-20 14:17:03 +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%