Making our own programming-language written in Ruby for TDP019, a course at LiTH, Sweden.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Installing and using Dunder

Dunder is written in Ruby so to use Dunder you will need a working installation of Ruby. Once you have that, follow the instructions below:

  • Download the source from Github.
  • Run the unit-tests to make sure everything is working by running the run_tests.rb file in the project-directory.
  • Use Dunder by running the lib/dunder.rb file.

Writing code in Dunder

age = 10
if(age < 21) {
  print "Hello kid!"

A recursive function to calculate a number in the Fibonacci sequence

def fib(n) {
  if (n <= 1) {
    return n
  } else {
    return fib(n-1)+fib(n-2)