-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
95 lines (68 loc) · 1.11 KB
/
test.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<title>MemDia Test Page</title>
<script src="memdia.js"></script>
<style>
h1 {
font-size: 16pt;
padding-top: 1em;
}
</style>
</head>
<body>
<!--
<h1>Test anything</h1>
<textarea id="input1" cols="30" rows="5">
int count = 159
</textarea>
<div><button onclick="draw_diagram('input1', 'image1')">Draw</button></div>
<div id="image1"></div>
-->
<h1>Variables</h1>
<div class="memdia">
int count = 159
double sum = 0.0
</div>
<h1>Functions</h1>
<div class="memdia">
main:
int hour = 11
int minute = 59
print:
int hour = 12
int minute = 15
</div>
<h1>Objects</h1>
<div class="memdia">
String status @ S1
Point p @ P1
S1: String
"okay"
P1: Point
double x = 1.2
double y = 3.4
</div>
<h1>Arrays</h1>
<div class="memdia">
int[] nums @ A1
String[] words @ A2
A1: int[]
{1, 2, 3}
A2: String[]
{S1, S2}
S1: String
"A"
S2: String
"B"
</div>
<!--
<h1>Literals</h1>
<div class="memdia">
String status @ "okay"
int[] points = {1, 2, 3}
int[] both = {"hi", "ho"}
</div>
-->
</body>
</html>