aboutsummaryrefslogtreecommitdiff
path: root/prog/function.html
blob: 2fe8d40be8f6e716ccbaf81832ad9d2b78c79b54 (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
<!doctype html>
<html>
	<head>
		<script src="../lib/doml.js"></script>
		<script>
			Doml.runOnLoad();
		</script>
		<link type="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="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="constant" data-val="7" data-type="number"></span>
			</span>
		</span>
	</body>
</html>