Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Unified Diff: ports/gambc_ppapi/index.html

Issue 150413008: Initial support for gambit-scheme v4.7.0 Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Add support for pnacl Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/gambc_ppapi/icon_48.png ('k') | ports/gambc_ppapi/main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/gambc_ppapi/index.html
diff --git a/ports/gambc_ppapi/index.html b/ports/gambc_ppapi/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..816adbf18f681de4fb592b28d344180be25ab966
--- /dev/null
+++ b/ports/gambc_ppapi/index.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Gambit Scheme Interpreter</title>
+ <META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
+ <META HTTP-EQUIV="Expires" CONTENT="-1" />
+
+ <script type="text/javascript" src="hterm.concat.js"></script>
+ <script type="text/javascript" src="naclterm.js"></script>
+ <script type="text/javascript" src="gambc.js"></script>
+
+ <style type="text/css">
+ #terminal {
+ position: relative;
+ display: block;
+ width: 95%;
+ height: 600px;
+ }
+ </style>
+ </head>
+ <body>
+ <p><b>Gambit Scheme Interpreter</b></p>
+ <p>This example shows the Gambit Scheme interpreter running in Native Client. By
+ default it runs the an interactive REPL (Run Eval Print Loop), but can also
+ run Gambit Scheme files from its virtual file system. ( Uploaded files located at
+ /mnt/html5 ) </p>
+ <input type="file" id="upload" multiple="multiple" onchange="uploadFiles" />
+ <div id="terminal"></div>
+ <button onclick='term_.onVTKeystroke("(load \"/mnt/http/pi\")\r(time (pi 10000))\r")'>10000 digits of &pi;</button>
+ <button onclick='term_.onVTKeystroke("(directory-files \"/\")\r")'>list files</button>
+ <button onclick='term_.onVTKeystroke("(define (f x) (+ 0.5 (/ 1 x)))\r(trace f)\r(f 5)\r(f 0)\r,be\r,(c 3)\r");'>simple debugging</button>
+ </body>
+</html>
« no previous file with comments | « ports/gambc_ppapi/icon_48.png ('k') | ports/gambc_ppapi/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698