aboutsummaryrefslogtreecommitdiff
path: root/prog/simpleWhileLoop.html
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-09-14 12:43:08 -0400
committerBen Burwell <ben.burwell@trifecta.com>2016-09-14 12:43:08 -0400
commite73c3d8f4088a2dca15069fc823601664ea8024c (patch)
treef637a29cd6bccf95ba954fb9b6093549cbe2cede /prog/simpleWhileLoop.html
parentd612d6c38a80d1e3a60a7a50be451a04a9587252 (diff)
Move DOML files to HTML
Diffstat (limited to 'prog/simpleWhileLoop.html')
-rw-r--r--prog/simpleWhileLoop.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/prog/simpleWhileLoop.html b/prog/simpleWhileLoop.html
new file mode 100644
index 0000000..ab458e6
--- /dev/null
+++ b/prog/simpleWhileLoop.html
@@ -0,0 +1,38 @@
+<!-- vim: set filetype=html: -->
+<!doctype html>
+<html>
+ <head>
+ <script type="text/javascript" src="../lib/util.js"></script>
+ <script type="text/javascript" src="../lib/types.js"></script>
+ <script type="text/javascript" src="../lib/binops.js"></script>
+ <script type="text/javascript" src="../lib/statements.js"></script>
+ <script type="text/javascript" src="../lib/readability.js"></script>
+ <script type="text/javascript" src="../lib/run.js"></script>
+ <link rel="stylesheet" href="../lib/style.css">
+ </head>
+ <body>
+ <span class="statement-sequence">
+ <span class="assign" data-name="x">
+ <span class="constant" data-val="0" data-type="number"></span>
+ </span>
+
+ <span class="while">
+ <span class="compare" data-op="<">
+ <span class="variable" data-name="x"></span>
+ <span class="constant" data-val="100" data-type="number"></span>
+ </span>
+
+ <span class="assign" data-name="x">
+ <span class="bin-op" data-op="+">
+ <span class="variable" data-name="x"></span>
+ <span class="constant" data-val="1" data-type="number"></span>
+ </span>
+ </span>
+ </span>
+
+ <span class="return">
+ <span class="variable" data-name="x"></span>
+ </span>
+ </span>
+ </body>
+</html>