Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

bjorngylling/TDP019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dunder

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)
  }
}

About

Making our own programming-language written in Ruby for TDP019, a course at LiTH, Sweden.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages