47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Liz's L-Program Compiler</title>
|
|
<link rel="stylesheet" type="text/css" href="codemirror/codemirror.css" />
|
|
<link rel="stylesheet" type="text/css" href="css/styles.css" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Liz's L-Program Compiler</h1>
|
|
<p><i>Developed for Kulyukin's CS5000</i></p>
|
|
<hr />
|
|
<div class="source-container">
|
|
<div class="textarea-container">
|
|
<h3>L Source</h3>
|
|
<textarea id="instructions">
|
|
// asdf
|
|
[ B1 ] X1 <- X1 + 1
|
|
IF X1 != 0 GOTO B1
|
|
X1 <- X1
|
|
</textarea
|
|
>
|
|
<div>
|
|
<button id="compile">Compile</button
|
|
><span style="margin-left: 0.5rem" id="compile_status"></span>
|
|
</div>
|
|
</div>
|
|
<div class="textarea-container">
|
|
<h3>Compiled JS</h3>
|
|
<textarea id="compiled"></textarea>
|
|
<div>
|
|
<button id="eval">Eval</button
|
|
><span style="margin-left: 0.5rem" id="eval_status"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="codemirror/codemirror.js"></script>
|
|
<script src="js-beautify/js-beautify.js"></script>
|
|
|
|
<script src="js/observable.js"></script>
|
|
<script src="js/parser.js"></script>
|
|
<script src="js/compiler.js"></script>
|
|
<script src="js/main.js"></script>
|
|
</body>
|
|
</html>
|