-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdemo.html
59 lines (39 loc) · 948 Bytes
/
demo.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
<!DOCTYPE html>
<html><head>
<meta charset="utf-8"/>
<title>ECOMCON DEMO</title>
</head>
<body>
<pre id=readout></pre>
<script type=module>
const input = `// This is a sample file.
function Constructor(number) {
//enter log_enter("Constructor");
function private_method() {
//enter log_enter("private_method");
//nochange alert();
//exit log_exit("private_method");
}
//test this.private_method = private_method;
//test this.priv = function () {
//enter log_enter("priv");
private_method();
//exit log_exit("priv");
}
//exit log_exit("Constructor");
}
//es6 export default Constructor;
//legacy module.exports = Constructor;
`;
import ecomcon from "./ecomcon.js";
let output = ecomcon(
input,
["es6", "test", "enter", "exit"] ,
["Devel Edition."]
);
function show(text) {
document.getElementById("readout").appendChild(document.createTextNode(text));
}
show(output);
</script>
</body></html>