blob: 4bd8eb933f0e738006798dead264f53842f83f89 (
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
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
|
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<meta charset="UTF-8">
<title>Lua Interpreter</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,700">
<link href="/static/styles/style.css" rel="stylesheet">
<script type="text/javascript" src="//storage.googleapis.com/gonacl/demos/publish/234230_dev/lua/hterm.concat.js"></script>
<script type="text/javascript" src="naclterm.js"></script>
<script type="text/javascript" src="lua.js"></script>
</head>
<body class="demo">
<header>
<h1>Lua Interpreter</h1>
</header>
<section>
<div class="intro">
<p>
This demo provides a client-side interactive shell for the <a
href="http://www.lua.org/" target="_blank">Lua</a> programming
language.
</p>
<p class="note">
Note: the C++ source code of this demo is available in <a
href="https://code.google.com/p/naclports/source/browse/trunk/src/examples/tools/lua_ppapi/README.nacl"
target="_blank">naclports</a>. The terminal interface is
rendered in HTML/CSS using the
<a href="https://github.com/libapps-mirror/libapps" target="_blank">hterm</a> library.
</p>
<div class="panel panel-info">
<h2>Run in Lua</h2>
<div class="panel-body">
<button type="button" id="shell">Interactive Shell</button>
<button type="button" id="unittests">Lua Unit Tests</button>
<button type="button" id="scimark">SciMark</button>
<button type="button" id="binarytrees">Binarytrees</button>
</div>
<h2>Paste Snippets</h2>
<div class="panel-body">
<button type="button" id="mandlebrot">Mandlebrot Ascii</button>
<button type="button" id="fibonacci">Fibonacci</button>
<button type="button" id="donut">Donut</button>
<button type="button" id="banner">Banner</button>
</div>
</div>
<p class="credit">
<b>Links:</b>
</br>
Unit Testss:
<a href="http://www.lua.org/tests/5.2/" target="_blank">Lua Unit Tests</a>
<br/>
Benchmarks:
<a href="http://luajit.org/download/scimark.lua" target="_blank">SciMark</a>,
<a href="http://kripken.github.io/lua.vm.js/binarytrees.lua" target="_blank">binarytrees</a>
<br/>
Snippets:
<a href="http://people.sc.fsu.edu/~%20jburkardt/c_src/mandelbrot_ascii/mandelbrot_ascii.html" target="_blank">Mandlebrot Ascii</a>,
<a href="http://www.a1k0n.net/2011/07/20/donut-math.html" target="_blank">Donut</a>
</p>
</div>
<div class="Demo-body">
<div id="listener" class="Demo-content">
<div id="terminal"></div>
</div>
</div>
<div id="loading-cover">
<div id="message">
<div id="statusField"></div>
<div id="progress" class="progress progress-striped active">
<div id="progress-bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
</div>
</div>
</div>
</div>
</section>
</body>
</html>
|