4 Copyright (c) 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
11 <title>Lua Interpreter
</title>
13 <link rel=
"stylesheet" href=
"//fonts.googleapis.com/css?family=Open+Sans:300,700">
14 <link href=
"/static/css/out/site.css" rel=
"stylesheet">
16 <script type=
"text/javascript" src=
"//storage.googleapis.com/gonacl/demos/publish/234230_dev/lua/hterm.concat.js"></script>
17 <script type=
"text/javascript" src=
"naclterm.js"></script>
18 <script type=
"text/javascript" src=
"lua.js"></script>
25 <h1>Lua Interpreter
</h1>
31 This demo provides a client-side interactive shell for the
<a
32 href=
"http://www.lua.org/" target=
"_blank">Lua
</a> programming
36 Note: the C++ source code of this demo is available in
<a
37 href=
"https://code.google.com/p/naclports/source/browse/trunk/src/examples/tools/lua_ppapi/README.nacl"
38 target=
"_blank">naclports
</a>. The terminal interface is
39 rendered in HTML/CSS using the
40 <a href=
"https://github.com/libapps-mirror/libapps" target=
"_blank">hterm
</a> library.
42 <div class=
"panel panel-info">
44 <div class=
"panel-body">
45 <button type=
"button" id=
"shell">Interactive Shell
</button>
46 <button type=
"button" id=
"unittests">Lua Unit Tests
</button>
47 <button type=
"button" id=
"scimark">SciMark
</button>
48 <button type=
"button" id=
"binarytrees">Binarytrees
</button>
50 <h2>Paste Snippets
</h2>
51 <div class=
"panel-body">
52 <button type=
"button" id=
"mandlebrot">Mandlebrot Ascii
</button>
53 <button type=
"button" id=
"fibonacci">Fibonacci
</button>
54 <button type=
"button" id=
"donut">Donut
</button>
55 <button type=
"button" id=
"banner">Banner
</button>
63 <a href=
"http://www.lua.org/tests/5.2/" target=
"_blank">Lua Unit Tests
</a>
66 <a href=
"http://luajit.org/download/scimark.lua" target=
"_blank">SciMark
</a>,
67 <a href=
"http://kripken.github.io/lua.vm.js/binarytrees.lua" target=
"_blank">binarytrees
</a>
70 <a href=
"http://people.sc.fsu.edu/~%20jburkardt/c_src/mandelbrot_ascii/mandelbrot_ascii.html" target=
"_blank">Mandlebrot Ascii
</a>,
71 <a href=
"http://www.a1k0n.net/2011/07/20/donut-math.html" target=
"_blank">Donut
</a>
76 <div class=
"Demo-body">
78 <div id=
"listener" class=
"Demo-content">
79 <div id=
"terminal"></div>
83 <div id=
"loading-cover">
85 <div id=
"statusField"></div>
86 <div id=
"progress" class=
"progress progress-striped active">
87 <div id=
"progress-bar" class=
"progress-bar" role=
"progressbar" aria-valuenow=
"0" aria-valuemin=
"0" aria-valuemax=
"100" style=
"width: 0%">