utam0k / R9cc
Licence: mit
Toy C compiler
Stars: ✭ 139
Programming Languages
rust
11053 projects
Labels
Projects that are alternatives of or similar to R9cc
Cperl
A perl5 with classes, types, compilable, company friendly, security
Stars: ✭ 125 (-10.07%)
Mutual labels: compiler
Instapack
All-in-one TypeScript and Sass compiler for web applications! 📦 🚀
Stars: ✭ 131 (-5.76%)
Mutual labels: compiler
Koto
A simple, expressive, embeddable programming language, made with Rust
Stars: ✭ 134 (-3.6%)
Mutual labels: compiler
Naskah
Bahasa pemrograman dengan sintaks Bahasa Indonesia (Programming language with Indonesian syntax) 🇮🇩
Stars: ✭ 132 (-5.04%)
Mutual labels: compiler
Grain
The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
Stars: ✭ 2,199 (+1482.01%)
Mutual labels: compiler
Pl0 Compiler
Compiler written for PL0 programming Language. Written in C, for COP3402 class from UCF.
Stars: ✭ 128 (-7.91%)
Mutual labels: compiler
Solang
First fully featured programming language for Stack Overflow Driven Development
Stars: ✭ 133 (-4.32%)
Mutual labels: compiler
Tinyscript
自制的一个编译器, 用于学习,完整实现了词法分析,语法分析,中间代码(SSA)生成,机器码生成,和基于寄存器的虚拟机
Stars: ✭ 132 (-5.04%)
Mutual labels: compiler
Nim
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Stars: ✭ 12,270 (+8727.34%)
Mutual labels: compiler
r9cc C Compiler
r9cc is a toy project of compiler.
This is the 9cc Rust version.
Usage
Rust 2018 edition is required.
- Compile
$ cargo run c_file_path
- Test
$ make test
Current status
- [x] Four arithmetic operations
- [x] Logical operation
- [x] Local variable
- [x] Global variable
- [x] Function call
- [x] Function definition
- [x] Array
- [x] Pointer
- [x] ++/--
- [x] char/int type
- [x] String literal
- [x] Strunct
- [x] extern
- [x] Comment
- [x] #include
- [x] #define
- [x] __LINE__
Design
If you want more information, I think you should refer to README.md of 9cc.
Reference
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].