-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoc.html
More file actions
103 lines (98 loc) · 5.43 KB
/
toc.html
File metadata and controls
103 lines (98 loc) · 5.43 KB
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
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<!-- documentation at http://getbootstrap.com/docs/4.0/, alternative themes at https://bootswatch.com/4-alpha/ -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet"/>
<link href="style-toc.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
<script src="app.js"></script>
<title>CFG Developer</title>
</head>
<body class="grad-bg">
<header class="site-header">
<nav class="navbar navbar-expand-md navbar-dark bg-navy fixed-top">
<div class="container">
<a class="navbar-brand mr-4" href="#"><img src="imgs/test.jpg" style="height: 30px; border-radius: 50px"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggle" aria-controls="navbarToggle" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggle">
<div class="navbar-nav mr-auto">
<a class="nav-item nav-link" href="#">Home</a>
</div>
<!-- Navbar Right Side -->
<div class="navbar-nav">
<a class="nav-item nav-link" href="credits.html">Credits</a>
</div>
</div>
</div>
</nav>
</header>
<main role="main" class="container">
<div class="row">
<div class="col-md-4" id="side-blocks">
<div class="content-section">
<h3>How to Use</h3>
<p>To use the CFG Developer, enter your CFG in the Input box, and hit generate.</p>
<p>The Example box will have a string belonging to the given language.</p>
<p>The Test box can be used to enter your own string, and check for membership in the given CFG.</p>
<p>To report any bugs, please fill the google form below.</p>
<div class="text-center">
<a href="https://forms.gle/yzgRY28f1hrhDGxYA"><button type="button" class="btn btn-cst">Report a Bug</button></a>
</div>
</div>
</div>
<div class="col-md-8" id="main-blocks">
<div class="content-section">
<h2>CFG Developer</h2>
</div>
<div class="content-section" id="input">
<h3>Input</h3>
<p>Enter your CFG in this box.</p>
<ol>
<li>
An empty box is epsilon by default.
</li>
<li>
Input is case sensitive, and whitespaces are not ignored.
</li>
<li>
Use the "|" character to indicate an "or".
</li>
</ol>
<form id="grammar">
<div class="form-group" id="productions">
<div class="d-flex flex-row flex-wrap" id="startrow">
<div class="p-2" style="width: 15%;">
<input type="text" style="cursor: not-allowed;" class="form-control NT" id="startsymbol" placeholder="S" readonly="readonly" value="S">
</div>
<div class="p-2" style="margin-top: 1%">
<p>→</p>
</div>
<div class="p-2" style="width: 15%;">
<input type="text" onkeydown="keyAction(event)" class="form-control first" placeholder="Ɛ">
</div>
</div>
</div>
<div class="row">
<div class="col text-center">
<button onclick="addProduction()" type="button" class="btn btn-cst">Add a Production</button>
</div>
</div>
<div class="row">
<div class="col text-center">
<button onclick="prepare()" type="button" class="btn btn-cst">Generate!</button>
</div>
</div>
</form>
</div>
</div>
</div>
</main>
</body>
</html>