Skip to content

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

If using Visual Studio

  • Clone this repository
  • Open the solution file using Visual Studio
  • Build and run
  • To run unit tests, use the Test Explorer

Using the .NET CLI

  • Clone this repository
  • Run dotnet run in /eiger
  • To run unit tests, run dotnet test in /eiger.Tests

Simple Example

class Person {
  let name
  let surname

  func new(name, surname) {
  	this.name = name
  	this.surname = surname
  }

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

  func Greet(other) {
  	emitln(name + " greeted " + other.name + "!")
  }
}

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

px.Introduction()
py.Introduction()

px.Greet(py)

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

About

General-purpose programming language with an interpreter written in C#. Contributions welcome.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages