Skip to content

CondorLang/Condor

Repository files navigation

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

  • make build - Builds the Condor program
  • make clean - Cleans all the object files

Running CondorLang

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

Todo Items

For a list of TODO items, see issues