r9cc is a toy project of compiler.
This is the 9cc Rust version.
Nightly version after 2018-10-1 is required.
- Compile
$ cargo run c_file_path
- Test
$ make test
- Four arithmetic operations
- Logical operation
- Local variable
- Global variable
- Function call
- Function definition
- Array
- Pointer
- ++/--
- char/int type
- String literal
- Strunct
- extern
- Comment
- #include
- #define
- __LINE__
If you want more information, I think you should refer to README.md of 9cc.