Skip to content

An interpreted, object-oriented and statically typed programming language inspired by TypeScript, Java and Scala written in JavaScript. I will continue it as I will have more time.

master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

GeckoJS

An interpreted, object-oriented and statically typed programming language inspired by TypeScript, Java and Scala written in JavaScript.

How to setup

GeckoJS is implemented in ES6 and the interpreter requires Node.js >= 4.2.2 to run.

With Node.js installed, type the following commands in a prompt to setup GeckoJS.

  1. $ git clone https://github.com/okkindel/GeckoJS.git
  2. $ cd GeckoJS
  3. $ npm install

How to build

Run npm run build to build.

How to run

Run npm run gecko to start an shell for writing GeckoJS programs.

Language Documentation:

Data types:

Gecko supports values of types like Int, Double, String, Bool and Void. All types in Gecko inherit from a supertype Object.

Comments:

Anything from the // to the end of line will be ignored by the interpreter.

// This is a comment.

Conditions:

Conditions are expressed using an if-else expression.

if (condition) {
    (do something)
} else {
    (do something)
}

Functions:

Functions are defined using the funcion keyword. Parameters are separated by , and enclosed in parenthesis (a: Int, b: Int). A parameter is followed whith : by its type function languages way.

funcion sum(a: Int, b: Int): Int = {
    a + b
}

About

An interpreted, object-oriented and statically typed programming language inspired by TypeScript, Java and Scala written in JavaScript. I will continue it as I will have more time.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.