File:  [Research Unix] / researchv10no / cmd / sml / doc / examples / spread / glue.sml
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

structure S = Spreadsheet(Parse(Semant));
open S;

val say = output std_out
fun sayn (i:int) = say(makestring i)

fun show(i,j) = 
    let val (s,v) = get(i,j)
     in say "["; sayn i; say ","; sayn j;
	say "] = "; sayn v;
	say "    "; say s; say "\n"
    end;

(* set up a simple spreadsheet *)
set(0,0,"40");
set(1,0,"50");
set(2,0,"[0,0]+[1,0]");

eval();

app show [(0,0),(1,0),(2,0),(3,0)];

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.