view index.html @ 251:2557ce4e671f

Fix a couple of compiler bugs. topenv was getting initialized in multiple places. This resulted in multiple copies of modules getting created which caused problems for macro expansion. Additionally, arguments were not being marked as declared during code generation so assigning to an argument that was not closed over generated invalid C code.
author Michael Pavone <pavone@retrodev.com>
date Fri, 11 Apr 2014 22:29:32 -0700
parents 2b25d0ce2946
children
line wrap: on
line source

<!DOCTYPE html>
<html>
<head>
	<title>Awesome!</title>
	<script src="/mquery.js"></script>
	<script src="/peg.js"></script>
	<script src="/mquery.js"></script>
	<script src="/parser.js"></script>
	<script src="/compiler.js"></script>
	<script src="/jsbackend.js"></script>
	<script src="/editor.js"></script>
	<script src="/scripttags.js"></script>
	<script src="/src/editor.tp" type="text/tabletprog"></script>
	<link rel="stylesheet" href="/editor.css">
	<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'>

</head>
<body>
	<div id="browser">
		<ul>
		</ul>
		<input type="button" value="Go Fullscreen" id="fullscreen">
	</div>
	<div id="editor">
		<div class="controls">
			<ul id="inscope"></ul>
		</div><div id="src"></div><div class="controls showops">
			<ul id="operators">
				<li>&lt;</li>
				<li>&gt;</li>
				<li>+</li>
				<li>-</li>
				<li>*</li>
				<li>/</li>
				<li>&&</li>
				<li>||</li>
			</ul>
			<ul id="literals">
				<li>object</li>
				<li>list</li>
				<li>array</li>
				<li>string</li>
				<li>number</li>
				<li>new symbol</li>
			</ul>
			<ul>
				<li id="ops_button">operators</li>
				<li id="lit_button">literals</li>
			</ul>
			<ul id="nav">
				<li id="out">outwards</li><li id="in">inwards</li>
				<li id="prev">previous</li><li id="next">next</li>
			</ul>
		</div>
	</div>
</body>
</html>