Skip to main content
  1. Projects/

f09f-rs

·124 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
I am currently studying Computer Science

f09f-rs
Rust
#

pronounced fonf; is a statically typed language with simple but powerful syntax, and an interpreter written in rust

Install #

git clone https://github.com/JakeRoggenbuck/f09f-rs
cargo install --path f09f-rs

Usage #

ShorthandFlagDescription
-vVerbose output of tokens

Syntax #

Vars #

int fact = 0;
prec dec = 0.2;
string this = "a string";
bool is_it = true;

Functions #

fun square(int n) returns int {
	~ Return the square of n ~
	return n ^ n;
}

Control flow #

if (n == 0) { n = 1; }

if (this and not that) {
	x = 1;
}

if (this or that) {
	x = 1;
}

if (this) {
	that = false;
} else {
	that = true;
}