Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.16 KB

README.md

File metadata and controls

35 lines (20 loc) · 1.16 KB

comp-rs

portuguese | english

Compiler developed in Rust for the Compilers subject at Federal University of ABC, given by professor Francisco Isidro Massetto in the second quarter of 2019.

This project was developed on rustc 1.35.0 (3c235d560 2019-05-20)

Objective

Create a transpiler for a fictional language to C language by implementing the features described in milestone v1.0.

Install

To install Rust, the recommended way is using rustup, a toolchain installer that enables you to switch between different version of the compiler.

Linux or another Unix-like OS:

curl https://sh.rustup.rs -sSf | sh

Compiling a program

There is some files in examples folder showing the language basic syntax.

cargo run <path_to_file>

The transpiled source code will be printed at the scren and it will be saved a file named out.c.

License

This project is under the MIT License - see the LICENSE file for details.