-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbefunge98.html
117 lines (117 loc) · 5.88 KB
/
befunge98.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html>
<head>
<title>Befunge-98 interpreter</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="befunge98.css"/>
<script type="text/javascript" src="befunge98-engine.js"></script>
<script type="text/javascript" src="befunge98-fingerprints.js"></script>
<script type="text/javascript" src="befunge98.js"></script>
</head>
<body>
<h1>Befunge-98 interpreter</h1>
<div id="wrapper">
<div id="coding">
<input type="file" id="file"/>
<div class="actions">
<button id="go"><span class="fa fa-play"></span> Run</button>
<button id="open-file"><span class="fa fa-folder-open"></span> Open...</button>
<select id="examples">
<option selected>Examples</option>
</select>
<button id="clear"><span class="fa fa-trash"></span> Clear</button>
<button id="show-about"><span class="fa fa-info-circle"></span> About</button>
</div>
<div>
<label for="code">Code:</label><br/>
<textarea id="code" placeholder="Code"></textarea>
</div>
<div class="actions">
<button id="interactive"><span class="fa fa-check-square"></span> Interactive input</button>
<button id="extra-args"><span class="fa fa-square"></span> Command line arguments</button>
</div>
<div id="input-area">
<label for="input">Input:</label><br/>
<textarea id="input" placeholder="Input"></textarea>
</div>
<div id="args-area">
<label for="args">Command line arguments (one per row):</label><br/>
<textarea id="args" placeholder="Command line arguments"></textarea>
</div>
</div>
<div id="execution">
<div class="actions">
<button id="back"><span class="fa fa-arrow-left"></span> Back</button>
<button id="run"><span class="fa fa-play"></span> Run</button>
<button id="pause" style="display: none;"><span class="fa fa-pause"></span> Pause</button>
<button id="delay"><span class="fa fa-square"></span> Delay</button>
<span id="delay-ms-container">
<input type="number" id="delay-ms" value="500" min="10" max="10000" step="10"/>
</span>
<button id="step"><span class="fa fa-step-forward"></span> Step</button>
<button id="reset"><span class="fa fa-rotate-left"></span> Reset</button>
<button id="debug"><span class="fa fa-check-square"></span> Debug</button>
</div>
<div>Console:</div>
<div id="console">
<span id="output"></span>
<span id="interactive-input" contenteditable></span>
<span id="exit-code"></span>
</div>
<div id="debug-container">
<div>Funge-Space:</div>
<div id="funge-space-container">
<table id="funge-space"></table>
<div id="funge-space-resize"></div>
</div>
<div>Stack:</div>
<div id="stack"></div>
</div>
</div>
</div>
<div id="about">
<div class="dialog">
<div class="close">click anywhere to close</div>
<h2>About JSFunge-98</h2>
<p>Version 1.0</p>
<p>
JSFunge-98 is a standards-compliant Befunge-98 interpreter written in pure JavaScript.
</p>
<p>
JSFunge-98 implements the entire <a target="_blank" href="http://quadium.net/funge/spec98.html">Befunge-98 specification</a>.
Filesystem Funge is not implemented for obvious reasons. Concurrent Funge-98 support may come in the future.
</p>
<p>
JSFunge-98 has been tested against the <a target="_blank" href="https://github.com/Deewiant/Mycology/">Mycology test suite</a>,
and it passes all tests.
</p>
<p>
The following fingerprints are currently implemented:
</p>
<ul>
<li><code>MODU</code></li>
<li><code>NULL</code></li>
<li><code>ROMA</code></li>
</ul>
<h3>License</h3>
<p>Copyright © PurkkaKoodari 2017</p>
<p>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
</p>
<p>
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
</p>
<p>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</p>
</div>
</div>
</body>
</html>