Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.
Lro-Steven-aqPublic archive

About

CNone is a Compiler. 嗯,对,CNone是一个编译器。

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

我想要写一个 C Compiler.

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

如何运行

  1. 安装Rust
  2. 然后在目录执行
     cargo run
    main.rs包含了3行C代码,控制台会输出删除注释的结果和词法分析的结果。

About

CNone is a Compiler. 嗯,对,CNone是一个编译器。

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages