Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

Latest commit

 

History

History
12 lines (11 loc) · 541 Bytes

README.MD

File metadata and controls

12 lines (11 loc) · 541 Bytes

我想要写一个 C Compiler.

现已实现了简单的词法分析器(然而,我并不想实现所有的C 标准的东西。因为懒或者麻烦)
(我称这个compiler为cnone就是因为这个原因的) 我把注释处理放到了预处理(尽管我还没有开始写)

如何运行

  1. 安装Rust
  2. 然后在目录执行
     cargo run --release
    在 . 目录下,有 .test.c .test2.c 文件,其包含了一定量的C代码,其可以通过这个词法分析。