Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 919 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 919 Bytes

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.