-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (23 loc) · 1004 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jack Syntax Analyzer</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h2>Jack Syntax Analyzer</h2>
<p>This is a syntax analyzer for Jack code, and project 10 in the Nand to Tetris course. You can copy and paste the code here:</p>
<textarea placeholder="enter code here" id="codeInput" spellcheck="false"></textarea>
<button type="button" id="inputCode">submit</button>
<p>Alternatively, you can select a directory:</p>
<input type="file" id="fileInput" name="myfile" multiple webkitdirectory>
<p>Note that errors won't be noted. If there's an error in your code you're on your own.</p>
<script src="./src/stripWhitespace.js"></script>
<script src="./src/regex.js"></script>
<script src="./src/tokenizer.js"></script>
<script src="./src/analyze.js"></script>
<script src="main.js"></script>
</body>
</html>