5 <meta http-equiv="X-UA-Compatible" content="chrome=1">
6 <title>GMQCC by graphitemaster</title>
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">
14 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
18 <a href="https://github.com/graphitemaster/gmqcc"><div class="fork"></div></a>
22 <h1 class="header">GMQCC</h1>
23 <p class="header">An Improved Quake C Compiler</p>
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>
35 <h3>Try it from your browser</h3>
37 <select id="eg" onchange="update()">
38 <option value="1">Hello World</option>
39 <option value="2">Loops</option>
43 <select id="std" onchange="update()">
44 <option value="qcc">QCC</option>
45 <option value="fteqcc">FTEQCC</option>
46 <option value="gmqcc">GMQCC</option>
48 <textarea id="input" rows="18" cols="100%"></textarea>
49 <button onclick="compile();">Compile & 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>
56 <script type="text/javascript" src="http://www.ohloh.net/p/602517/widgets/project_partner_badge.js"></script>
59 <script type='text/javascript'>
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, "&");
70 //text = text.replace(/</g, "<");
71 //text = text.replace(/>/g, ">");
72 //text = text.replace('\n', '<br>', 'g');
73 element.value += text + "\n";
74 element.scrollTop = 99999; // focus on bottom
77 printErr: function(text) {
78 if (0) { // XXX disabled for safety typeof dump == 'function') {
79 dump(text + '\n'); // fast, straight to the real console
86 <script src="javascripts/compiler.js"></script>
87 <!--[if !IE]><script>fixScale(document);</script><![endif]-->