Public | Automated Build

Last pushed: a year ago
Short Description
CobraLang is intended to be another simple and intuitive programming language.
Full Description

CobraLang

CobraLang 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.

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");

Todo:

  • api.cc 75 - Not returning empty if it is
  • node.h 27 - Create a Expand() function which expands the node and the tree
  • execute.cc 118 - Figure out how to implement recursion
  • execute.cc 204 - Set row and col for tracking
  • execute.cc 464 - Implement bitwise
  • execute.cc 589 - Allow for all array types
  • parser.cc 894 - Disallow for allow-native on a non internal file
  • scanner.cc 466 - Include Octal, Hex, UTF-8, UTF-16, see https://msdn.microsoft.com/en-us/library/6aw8xdf2.aspx
  • internal.cc 140 - Throw Error
  • internal.cc 152 - Throw Error
  • internal.cc 164 - Throw Error
  • internal.cc 197 - Move to a macro
  • semantics.cc 300 - Verify this is ok and always true
  • semantics.cc 699 - Compare the base type with the assignment type. Throw an error if they are not the same if hard typed.
  • path.cc 24 - Set Locale - http://askubuntu.com/questions/236924/matlab-not-working
  • path.cc 78 - Throw Error
Docker Pull Command
Owner
chasewillden
Source Repository

Comments (0)