summaryrefslogtreecommitdiff
path: root/godel/index.html
blob: 055f13da89b5c3a9577bb535d58245d7637b1761 (plain)
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
<!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>