-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (32 loc) · 1.06 KB
/
index.html
File metadata and controls
35 lines (32 loc) · 1.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>Lexical Analyzer</title>
</head>
<body>
<div class="container">
<!-- Top description -->
<h2 class="topheading">
This tool breaks your code into small parts (tokens) like keywords,
numbers, strings, and symbols. You can see each token’s type and value
in the scrollable result box.
</h2>
<!-- Left side -->
<div class="leftdiv">
<h1 class="lfthead">Lexical Analyzer</h1>
<textarea id="input" placeholder="Enter code here..."></textarea>
<button id="analyzeBtn">See Tokens</button>
</div>
<!-- Right side -->
<div class="rightdiv">
<h2 class="rgthead">Token Box :</h2>
<div id="tokens" class="tokens"></div>
<button id="clearBtn" class="clearBtn">Clear Boxes</button>
</div>
</div>
<script src="./app.js"></script>
</body>
</html>