summaryrefslogtreecommitdiff
path: root/chapter18/docs
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-12-03 13:51:58 -0800
committerCliff Click <cliffc@acm.org>2025-01-15 15:07:30 -0800
commit2136abe8071833fd072c4be13c885525b46f5320 (patch)
treedc3ff85a9cff2a505ea40b67e8a309017a80adc3 /chapter18/docs
parent61a06caa60b4c446f45dcb699a1546981413786d (diff)
downloadSimple-2136abe8071833fd072c4be13c885525b46f5320.tar.gz
Simple-2136abe8071833fd072c4be13c885525b46f5320.zip
Greatly improved JSViewer
Handle memory edges. Color-coded edges & nodes to match lattice. Add SB vs StringBuilder. JSViewer needs SB to keep my sanity. Catch successful peeps and `show` them. Drop unused LLVM format, so I don't need to support Yet Another Printer. SimpleWebSocket handles longer packets; more robust close. Bug fix st/new fold. Bug fix Phi pull-down op losing precision.
Diffstat (limited to 'chapter18/docs')
-rw-r--r--chapter18/docs/index.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/chapter18/docs/index.html b/chapter18/docs/index.html
index f2b7e278..3a425f25 100644
--- a/chapter18/docs/index.html
+++ b/chapter18/docs/index.html
@@ -36,7 +36,7 @@
var graphviz = d3.select("#graph").graphviz()
.transition(function () {
return d3.transition("main")
- .ease(d3.easePolyInOut)
+ .ease(d3.easeLinear)
.delay(0)
.duration(500);
});
@@ -50,7 +50,15 @@
updateN(0);
dots=[];
done=false;
- var src = prompt("Simple program:", "return 0;");
+ var src = prompt("Simple program:",`struct Vector2D { int x; int y; };
+Vector2D !v = new Vector2D;
+v.x = 1;
+if (arg)
+ v.y = 2;
+else
+ v.y = 3;
+return v;
+`);
socket.send(src);
// Once the program is sent, timer starts
_timer = setTimeout("close()",100000)