-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutput.html
33 lines (33 loc) · 2.65 KB
/
output.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
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>automata</title>
</head>
<body>
<pre><span class="code COMMENT">// a comment</span><br><span class="code VARIABLE">a</span><span class="code OP">=</span><span class="code INTEGER">5</span><br><br><span class="code COMMENT">// a simple expression</span><br><span class="code VARIABLE">b</span><span class="code OP">=</span><span class="code VARIABLE">a</span><span class="code OP">+</span><span class="code INTEGER">5</span><span class="code OP">/</span><span class="code INTEGER">7</span><br><br><span class="code COMMENT">// parenthesis</span><br><span class="code VARIABLE">c</span><span class="code OP">=</span><span class="code OP">(</span><span class="code VARIABLE">a</span><span class="code OP">/</span><span class="code VARIABLE">b</span><span class="code OP">)</span><span class="code OP">+</span><span class="code OP">(</span><span class="code VARIABLE">b</span><span class="code OP">*</span><span class="code INTEGER">2</span><span class="code OP">)</span><br><br><span class="code COMMENT">// float literals</span><br><span class="code VARIABLE">_boo</span><span class="code OP">=</span><span class="code FLOAT">7.1E-10</span><br><br><span class="code COMMENT">// nested parenthesis</span><br><span class="code VARIABLE">_123</span><span class="code OP">=</span><span class="code OP">(</span><span class="code OP">(</span><span class="code INTEGER">1</span><span class="code OP">)</span><span class="code OP">*</span><span class="code OP">(</span><span class="code INTEGER">2</span><span class="code OP">/</span><span class="code INTEGER">3</span><span class="code OP">)</span><span class="code OP">)</span><span class="code OP">-</span><span class="code OP">(</span><span class="code INTEGER">-4</span><span class="code OP">*</span><span class="code OP">(</span><span class="code INTEGER">5</span><span class="code OP">/</span><span class="code VARIABLE">a</span><span class="code OP">)</span><span class="code OP">)</span><br><br><span class="code VARIABLE">foo</span><span class="code OP">=</span><span class="code VARIABLE">_123</span><span class="code OP">*</span><span class="code INTEGER">2</span><span class="code COMMENT">// end of line comment</span><br></pre>
<style type="text/css">
body {
background-color: #282c34;
}
.code {
font-family: monospace;
font-size: 1.2em;
}
.COMMENT {
color: #abb2bf;
}
.VARIABLE {
color: #61afef;
}
.OP {
color: #005757;
}
.INTEGER {
color: #e06c75;
}
.FLOAT {
color: #e06c75;
}
</style>
</body>
</html>