-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (94 loc) · 3.22 KB
/
index.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
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" type="text/css" href="./default.css">
<script src="./grammar.js"></script>
<script src="./parser.js"></script>
<script src="./compiler.js"></script>
<script src="./generator.js"></script>
<script src="./controller.js"></script>
<title>House Arranged BNF Analyzer</title>
</head>
<body>
<nav id="top">
<span>analysis</span>
<span><a href="./notation.html">notation</a></span>
<span><a href="./explanation.html">explanation</a></span>
</nav>
<article>
<h1>House Arranged BNF Analyzer</h1>
<div class="table">
<div class="row">
<div class="cell"><label for="grammar">HABA string</label></div>
<div class="cell">
<div><textarea id="grammar"></textarea></div>
<div><input type="checkbox" id="ignore"><label for="ignore">Ignore case</label></div>
<div><button id="analyze">Analyze</button></div>
</div>
</div>
<div class="row">
<div class="cell">Result</div>
<div class="cell"><ul id="result"></ul></div>
</div>
<div class="row">
<div class="cell">Syntax tree</div>
<div class="cell">
<div><input type="checkbox" id="view-tree"><label for="view-tree">Display</label></div>
<div class="tree"><ul id="tree"></ul></div>
</div>
</div>
<div class="row">
<div class="cell">Lexical analysis elements</div>
<div class="cell">
<div><input type="checkbox" id="view-element"><label for="view-element">Display</label></div>
<div><table id="element"></table></div>
</div>
</div>
<div class="row">
<div class="cell">Dummy elements</div>
<div class="cell">
<div><input type="checkbox" id="view-dummy"><label for="view-dummy">Display</label></div>
<div><table id="dummy"></table></div>
</div>
</div>
<div class="row">
<div class="cell">Production rules</div>
<div class="cell">
<div><input type="checkbox" id="view-rule"><label for="view-rule">Display</label></div>
<div><table id="rule"></table></div>
</div>
</div>
<div class="row">
<div class="cell">Closures</div>
<div class="cell">
<div><input type="checkbox" id="view-closure"><label for="view-closure">Display</label></div>
<div class="top"><table id="closure"></table></div>
</div>
</div>
<div class="row">
<div class="cell">State transitions</div>
<div class="cell">
<div><input type="checkbox" id="view-transition"><label for="view-transition">Display</label></div>
<div><table id="transition"></table></div>
</div>
</div>
<div class="row">
<div class="cell">Parsing table</div>
<div class="cell">
<div><input type="checkbox" id="view-table"><label for="view-table">Display</label></div>
<div><table id="table"></table></div>
</div>
</div>
<div class="row">
<div class="cell">JavaScript</div>
<div class="cell">
<div><input type="checkbox" id="view-script"><label for="view-script">Display</label></div>
<div class="script"><div id="script"></div></div>
</div>
</div>
</div>
</article>
</body>
</html>