tusl
tusl copied to clipboard
A scripting language for extending C programs; recognizably Forth-like, but definitely not Forth.
TUSL -- the ultimate scripting language. Copyright 2003-2005 Darius Bacon [email protected] under the terms of the MIT X license found at http://www.opensource.org/licenses/mit-license.html
This is an experiment in adding interactive scripting to C programs with as little fuss as possible. The language is loosely derived from Forth, but without trying to match any language standard.
About the name: Luke Gorrie once complained about my modest names for programs (like Vapour and Miasma), and this is my reply.
QUICK START
$ make $ ./runtusl '"eg/babble.ts" load'
outputs:
In this paper we will demonstrate that with structured deployment of transient policy criteria balanced by synchronized monitored utilities it is necessary for all optimal undocumented interaction to avoid optional monitored congruence. [etc...]
Or run with no arguments to get an interactive prompt:
$ ./runtusl ( 2 3 + . 5 (
CURSES
There's a basic curses wrapper:
$ make runcurst $ ./runcurst '"eg-curses/sokoban.ts" load play'
(Do it in a terminal window, not under Emacs, etc.)