RSCMM

  1. A C language Interpreter Library.
  2. A practice project to educate myself.
  3. RSCMM is a combine of Rust & CMM. CMM is contrary to CPP, means less than C.

Pipeline


Including RSCMM in your project

toml [dependencies] rscmm = "0.3"

Implementation

src folder

functionality

Example

```c int gcd(int a, int b) { if (b == 0) { return a; } else { return gcd(b, a % b); } }

int main() { int p = gcd(99, 90); p; // single variable statement means print. } ```

rust // Run example rscmm::compile_and_run("example/gcd.c").unwrap(); // Get vm codes rscmm::compile_to_code("example/gcd.c").unwrap();