Skip to content

AI314159/Ratio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ratio

Ratio is a fast, natively compiled, statically typed work-in-progress programming language. This repository contains the compiler for Ratio. The syntax is similar to Python, Rust, and TypeScript. Below is a simple example program.

fn main() {
    print("Hello world");
    var x: int = 10;
    print(x);
}

Building and running

Simply run cargo run input.ratio -o output to build Ratio and compile the code in input.ratio into the executable file output. Note that you will need GCC (we use it to link) for this to work, as it is called internally by the Ratio compiler.

A note on the name

Ratio is probably going to be a temporary name, just because I couldn't think of anything else.

About

A fast, natively compiled, type-safe programming language written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages