https://github.com/tarptaeya/truck
:truck: A dynamic object oriented programming language with a focus on simplicity
https://github.com/tarptaeya/truck
class-inheritance dynamic-programming-language grammar interpreter language object-oriented-language programming-language python recursive-descent-parser repl truck vim-syntax visitor-pattern
Last synced: 8 months ago
JSON representation
:truck: A dynamic object oriented programming language with a focus on simplicity
- Host: GitHub
- URL: https://github.com/tarptaeya/truck
- Owner: tarptaeya
- License: mit
- Created: 2019-07-09T05:13:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T22:13:59.000Z (over 5 years ago)
- Last Synced: 2025-06-07T18:07:14.504Z (9 months ago)
- Topics: class-inheritance, dynamic-programming-language, grammar, interpreter, language, object-oriented-language, programming-language, python, recursive-descent-parser, repl, truck, vim-syntax, visitor-pattern
- Language: Python
- Homepage:
- Size: 138 KB
- Stars: 29
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/Tarptaeya/Truck) [](https://ci.appveyor.com/project/Tarptaeya/truck/branch/master)
Truck is a dynamic programming language with a focus on simplicity.
### Example
```truck
use io
class Greeter {
constructor(name) {
this.name = name
}
salute() {
io.println("Hello " + this.name)
}
}
g = Greeter("world")
g.salute()
```
### Getting started
```bash
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.