File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " notcc"
33description = " A compiler for a subset of C written in Rust. Based on the book \" Writing a C Compiler\" by Nora Sandler."
4+ readme = " rust_src/README.md"
45version = " 0.1.0"
56edition = " 2024"
7+ repository = " https://github.com/rlivings39/learning-compilers"
68
79[dependencies ]
810clap = { version = " 4.5.44" , features = [" derive" ] }
Original file line number Diff line number Diff line change 1+ # notcc - A compiler for a subset of C
2+
3+ This Crate implements a compiler for a subset of C based on the book "Writing a C Compiler" by Nora Sandler.
4+
5+ ## Usage
6+
7+ Build the crate and view the CLI help
8+
9+ ``` bash
10+ cargo run --- -h
11+ ```
12+
13+ To use this crate as a library have a look at the function ` driver_main ` which invokes the entire compiler driver as library interface.
14+
15+ ## Full documentation
16+
17+ The full status of the compiler is described in [ https://github.com/rlivings39/learning-compilers ] ( https://github.com/rlivings39/learning-compilers )
Original file line number Diff line number Diff line change 1+ #![ doc = include_str ! ( "README.md" ) ]
12mod driver;
23pub mod error;
34
You can’t perform that action at this time.
0 commit comments