Skip to content

The C# Implementation for the Eiger programming language. Contributions Welcome!

License

Notifications You must be signed in to change notification settings

eigerproject/eigercs

Repository files navigation

Eiger Programming Language

Eiger (name from Mt. Eiger, Switzerland) is a simple interpreted dynamic-typed programming language.

Website | Documentation

Current Features

  • Variables
  • Control Flow
  • Loops
  • Functions
  • Object Oriented Programming (WIP)

Installation

There are no stable releases of the language yet, but you can still build from the source

Building and Running

  • Clone this repository
  • Open the solution `.sln` file using Visual Studio
  • Build and run

Simple Example

class Person
    let private name
    let private surname

    ~ constructor
    func new(name, surname)
        this.name = name
        this.surname = surname
    end

    func Introduction()
        emitln("I am " + this.name + " " + this.surname + "!")
    end

    func Greet(other)
        emitln(this.name + " greeted " + other.name + "!")
    end
end

let px = Person("Name1", "Surname1")
let py = Person("Name2", "Surname2")

px.Introduction()
py.Introduction()
px.Greet(py)

Person("a","b").Introduction()

This is a very simple example showing Eiger's OOP capabilities

Releases

No releases published

Languages