Skip to content

michaelmelanson/risp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Risp

Risp is a programming environment. It's implemented in Rust and compiles to x86-64 at runtime to execute it.

This is SUPER hacky and will probably fail to run all but the simplest programs. It may even eat your homework.

Features

  • Basic arithmetic expressions, e.g. 1 + 2 + 3 * 4 evaluates to 15.
  • Function definitions and evaluation, e.g. def add_one (x) { 1 + x } add_one(41) evaluates to 42.
  • Variable definitions, e.g. let x = 3.
  • Early return statements, e.g. return 42.
  • Conditional statements, e.g. if x { return 1 }.
  • Assignment statements, e.g. x = x + 1.
  • Simple boolean expressions in conditions, e.g. if x < 3 {} or if x == y {}.
  • Compound boolean expressions in conditions, e.g. if x > 5 && x < 10 {}.
  • While loops, e.g. while x < 10 { x = x + 1 }.

How to use it

  1. Install Rust via Rustup.
  2. Build the project using cargo build.
  3. Run the Risp environment with cargo run.

About

A just-in-time compiled programming envionment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages