Skip to content

Compiler of a fictional language to C written in Rust

License

Notifications You must be signed in to change notification settings

LucasTornai/comp-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Compiler of a fictional language to C written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages