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>
12 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
16 <a href="https://github.com/graphitemaster/gmqcc"><div class="fork"></div></a>
19 <h1 class="header">GMQCC</h1>
20 <p class="header">An Improved Quake C Compiler</p>
23 <li class="download"><a href="https://github.com/graphitemaster/gmqcc/zipball/master">Download ZIP</a></li>
24 <li class="download"><a href="https://github.com/graphitemaster/gmqcc/tarball/master">Download TAR</a></li>
25 <li class="buttons"><a href="https://github.com/graphitemaster/gmqcc/issues">Issues</a></li>
26 <li class="Buttons"><a href="test.html">Try it</a></li>
27 <li class="buttons"><a href="https://github.com/graphitemaster/gmqcc">View On GitHub</a></li>
31 <h3>Try it from your browser</h3>
33 <select id="eg" onchange="update()">
34 <option selected value="1">Builtins</option>
35 <option value="2">Calls</option>
36 <option value="3">Equality</option>
37 <option value="4">Field Parameters</option>
38 <option value="5">Field Definitions</option>
39 <option value="6">Fields</option>
40 <option value="7">Functions As Paramaters</option>
41 <option value="8">Global Definitions</option>
42 <option value="9">If</option>
43 <option value="10">Loops</option>
44 <option value="11">Math</option>
45 <option value="12">Digraphs and Trigraphs</option>
46 <option value="13">Variadic Arguments</option>
48 <textarea id="input" rows="25" cols="100%" disabled="disabled"></textarea>
50 <button onclick="compile()">Execute</button>
51 <textarea id="args">Test</textarea>
52 <h4>Execution Output:</h4>
53 <textarea id="output" rows="25", cols="100%"></textarea>
56 <!--<script type="text/javascript" src="http://www.ohloh.net/p/602517/widgets/project_partner_badge.js"></script>-->
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 <script src="javascripts/vm.js"></script>
88 <!--[if !IE]><script>fixScale(document);</script><![endif]-->