DALIS on the command line

I originally wrote DALIS as a cloud based programming language, but since I had abstracted out all the IO, it has been really easy to make a command line version as well.  So I have thrown together a few simple scripts to play around with. Consider this, for example:

IF ISASSIGNED("arg1") AND ISASSIGNED("arg2")
   min = NUMBER(arg1)
   max = NUMBER(arg2)
   gap = (max-min) / 10
   WRITE "deg F deg C"+RETURN
   LOOP f=min
      c=(5/9)*(f-32)
      WRITE TEXT(f,1)+" "+TEXT(c,1)+RETURN
   REPEAT f=f+gap IF f<(max+1)
OTHERWISE
   WRITE "You must pass two arguments, min and max."+RETURN
END

As you can see, DALIS programs can now accept parameters (the web based version allows you to pass the parameters in the query string of the url). In this example you specify a minimum and maximum temperature in degrees farenheight and the program makes a simple table converting them to celcius.  Here is a screenshot:

DALIS on the command line

You never know, this might even make for a useful little scripting language.