trucklang

A dynamic object oriented programming language with a focus on simplicity


Keywords
class-inheritance, dynamic-programming-language, grammar, interpreter, language, object-oriented-language, programming-language, python, recursive-descent-parser, repl, truck, vim-syntax, visitor-pattern
License
MIT
Install
pip install trucklang==0.1.1

Documentation

Build Status Build status

Truck is a dynamic programming language with a focus on simplicity.

Example

use io

class Greeter {
  constructor(name) {
    this.name = name
  }

  salute() {
    io.println("Hello " + this.name)
  }
}

g = Greeter("world")
g.salute()

Getting started

git clone http://github.com/tarptaeya/truck
cd truck
python3 -m truck #[filename] or leave empty to run repl

Syntax highlighting

Syntax highlighting for vim is supported and associated files can be found in the vim directory of the project. Either copy the files yourself or execute install_vim.sh to automatically copy the vim files for you.