TPL is a dynamically typed, imperative, interpreted scripting language. The main design goal was flexibility coupled with simplicity: the base language is very minimal, with features powerful enough to meaningfully extend it. For example, you can write your own control structures like loops.
Read all about the language in the Guide
This is also availabile as a Markdown page on Github.
To install, clone this repository and use
git clone git://github.com/TikhonJelvis/TPL.git cd TPL cabal install
If you use Emacs, you can also install a simple Emacs mode for TPL. To do this, copy
emacs/tpl-mode.el to somewhere in your load path and add
(require 'tpl-mode) to your
.emacs file. This will automatically associate
.tpl files with
In the near future, I want to add:
- better error handling and reporting
- more standard functions (IO is particularly lacking right now)
Check out the
base library for some example code. The library is in several files inside the
The library is mostly written in a very functional style. However, there are some interesting functions like
base/list.tpl that are written in a more imperative style.