A scripting language for extending C programs; recognizably Forth-like, but definitely not Forth.
C TypeScript Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
eg-curst
eg
COPYING
Makefile
README
TODO
runcurst.c
runtusl.c
tusl.c
tusl.h
tuslrc.ts

README

   TUSL -- the ultimate scripting language.
   Copyright 2003-2005 Darius Bacon <darius@wry.me>
   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.)