Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

bjorngylling/TDP019

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
lib
 
 
 
 
 
 
 
 
 
 

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