/ctl

Compiling toolchain library

Primary LanguageRustMIT LicenseMIT

CTL

Compiling toolchain library

What it is

CTL is a program which parses source code (written in Rust's subset) and generates an intermediate code from it.

CTL diagram

Build and test

CTL can be built by the command below:

cargo build

And one can run all the tests by the command below:

cargo test -- --test-threads 1

Option -- --test-threads 1 is used in order to prevent heisenbug (it shoots in the tests on optimizer).

Features

  • Parsing. CTL can parse a source code written in a subset of Rust. One can get familiar with the language in tests/parser_test.rs
  • Generating IR. It can generate IR from the AST.