]> git.xonotic.org Git - xonotic/gmqcc.git/blob - test.html
No busted color
[xonotic/gmqcc.git] / test.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset="utf-8">
5     <meta http-equiv="X-UA-Compatible" content="chrome=1">
6     <title>GMQCC by graphitemaster</title>
7
8     <link rel="stylesheet" href="stylesheets/styles.css">
9     <link rel="stylesheet" href="stylesheets/pygment_trac.css">
10     <script src="javascripts/scale.fix.js"></script>
11     <script src="javascript/vm.js"></script>
12     <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
13     <!--[if lt IE 9]>
14     <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
15     <![endif]-->
16   </head>
17   <body>
18     <a href="https://github.com/graphitemaster/gmqcc"><div class="fork"></div></a>
19     <div class="wrapper">
20       <header>
21           
22         <h1 class="header">GMQCC</h1>
23         <p class="header">An Improved Quake C Compiler</p>
24
25         <ul>
26           <li class="download"><a class="buttons" href="https://github.com/graphitemaster/gmqcc/zipball/master">Download ZIP</a></li>
27           <li class="download"><a class="buttons" href="https://github.com/graphitemaster/gmqcc/tarball/master">Download TAR</a></li>
28           <li><a class="buttons" href="https://github.com/graphitemaster/gmqcc/issues">Issues</a></li>
29           <li><a class="buttons" href="test.html">Try it</a></li>
30           <li><a class="buttons" href="https://github.com/graphitemaster/gmqcc">View On GitHub</a></li>
31         </ul>
32
33       </header>
34       <section>
35         <h3>Try it from your browser</h3>
36         Load Example:
37         <select id="eg" onchange="update()">
38             <option value="1">Hello World</option>
39             <option value="2">Loops</option>
40         </select>
41         &nbsp;
42         Standard:
43         <select id="std" onchange="update()">
44             <option value="qcc">QCC</option>
45             <option value="fteqcc">FTEQCC</option>
46             <option value="gmqcc">GMQCC</option>
47         </select>
48         <textarea id="input" rows="18" cols="100%"></textarea>
49         <button onclick="compile();">Compile &amp; Run</button>
50         <h4>Compiler Output:</h4>
51         <textarea id="output" rows="8" cols="100%"></textarea>
52         <h4>Execution Output:</h4>
53         <textarea id="exec" rows="8", cols="100%"></textarea>
54       </section>
55       <footer>
56         <script type="text/javascript" src="http://www.ohloh.net/p/602517/widgets/project_partner_badge.js"></script>
57       </footer>
58     </div>
59        <script type='text/javascript'>
60       var Module = {
61         preRun: [],
62         noInitialRun: true,
63         postRun: [],
64         print: (function() {
65           var element = document.getElementById('output');
66           element.value = ''; // clear browser cache
67           return function(text) {
68             // These replacements are necessary if you render to raw HTML
69             //text = text.replace(/&/g, "&amp;");
70             //text = text.replace(/</g, "&lt;");
71             //text = text.replace(/>/g, "&gt;");
72             //text = text.replace('\n', '<br>', 'g');
73             element.value += text + "\n";
74             element.scrollTop = 99999; // focus on bottom
75           };
76         })(),
77         printErr: function(text) {
78           if (0) { // XXX disabled for safety typeof dump == 'function') {
79             dump(text + '\n'); // fast, straight to the real console
80           } else {
81             console.log(text);
82           }
83         }
84       };
85     </script>  
86         <script src="javascripts/compiler.js"></script>
87     <!--[if !IE]><script>fixScale(document);</script><![endif]-->
88   </body>    
89 </html>