aboutsummaryrefslogtreecommitdiff
path: root/prog/function.html
blob: f0bf3344cc55c2b5836ca8a64dc9bb8fa3717a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html>
	<head>
		<script src="../lib/doml.js"></script>
		<script>
			Doml.runOnLoad();
		</script>
		<link rel="stylesheet" href="../lib/style.css">
	</head>
	<body>
		<span class="statement-sequence">
			<span class="assign" data-name="myFunc">
				<span class="function" data-args="stringToPrint,val1,val2">
					<span class="print">
						<span class="variable" data-name="stringToPrint"></span>
						<span class="bin-op" data-op="+">
							<span class="variable" data-name="val1"></span>
							<span class="variable" data-name="val2"></span>
						</span>
					</span>
				</span>
			</span>

			<span class="repeat" data-iteration="loopTime">
				<span class="constant" data-val="5" data-type="number"></span>
				<span class="call" data-name="myFunc">
					<span class="constant" data-val="hello, world!" data-type="string"></span>
					<span class="constant" data-val="3.5" data-type="number"></span>
					<span class="variable" data-name="loopTime"></span>
				</span>
			</span>
		</span>
	</body>
</html>