Execute SNUSP/JavaScript: Difference between revisions
m
Fixed syntax highlighting.
(templates and categories) |
m (Fixed syntax highlighting.) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1:
{{implementation|SNUSP}}{{collection|RCSNUSP}}
This [[JavaScript]] code is the core of a Modular SNUSP interpreter and debugger designed to be embedded on a [http://www.quirkster.com/snusp/snusp-js.html web page].
<syntaxhighlight lang="javascript">// to be run from a page having fields with these ids:▼
▲// to be run from a page having fields with these ids:
// raw: large textarea for code input
// code: empty PRE block for showing the program execution
Line 154 ⟶ 153:
body();
dump();
}</syntaxhighlight>
|