CondorLang / Condor

A fast, simple, and intelligent new programming language
BSD 3-Clause "New" or "Revised" License
34 stars 11 forks source link
c-plus-plus condor makefile programming-language

Condor Build Status

Condor is intended to be another simple and intuitive programming language. The syntax is familiar by design, but allows for the combining of a few concepts.

Download

Linux Binary (64-bit)

Documentation

See Wiki for documentation.

Contributing:

See Contributing page in the wiki See Developers for building instructions.

Examples

Hello World

import "console"
println("Hello World");

Object Oriented

import "console"

object Fruit{
    private string _name;
    func Fruit(string name) this._name = name;
    func getName() return this._name;
    func toString() {
        return "The name of this fruit is: " + this._name;
    }
}

var apple = new Fruit("Apple");
Fruit banana = new Fruit("Banana");
println("First fruit: " + apple.getName() + ", Second fruit: " + banana.getName());

Read File

import "fs"
string contents = fs.readFile("readme.md");

Building Instructions

CondorLang uses CMake to generate the Makefiles. The following commands build the project.

Build

Running CondorLang

The run CondorLang, use the following commands. ./build/condor [file]

Todo Items

For a list of TODO items, see issues