Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rozukke/mimi
Simple C compiler built with Rust. (very WIP)
https://github.com/rozukke/mimi
c compiler learning-by-doing rust
Last synced: 4 days ago
JSON representation
Simple C compiler built with Rust. (very WIP)
- Host: GitHub
- URL: https://github.com/rozukke/mimi
- Owner: rozukke
- License: mit
- Created: 2024-08-07T04:31:09.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T09:23:17.000Z (3 months ago)
- Last Synced: 2024-08-09T10:54:51.667Z (3 months ago)
- Topics: c, compiler, learning-by-doing, rust
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mimi
[![GitHub license](https://img.shields.io/github/license/rozukke/mimi.svg)](https://github.com/rozukke/mimi/blob/main/LICENSE)
[![Creator rozukke](https://img.shields.io/badge/Creator-rozukke-f497af.svg)](https://github.com/rozukke)
[![Made with Rust](https://img.shields.io/badge/Made%20with-Rust-b7410e.svg)](https://www.rust-lang.org)`mimi` is a simple C compiler built with Rust following Nora Sandler's "Writing a C Compiler - Build a Real Programming Language from Scratch (2024)".
## Usage
Use the compiler with the command `mimi [OPTIONS]`. There are a few available options, listed below.**General options:**
- `--help` or `-h`: View the help menu.
- `--version` or `-v`: Print the current version of `mimi`.**Options for testing:**
- `--lex` or `-l`: Only run the compiler up to the lexer stage.
- `--parse` or `-p`: Only run the compiler up to the parser stage.
- `--codegen` or `-c`: Only run the compiler up to the codegen stage.