2013/5/3 Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Matthew,<br>
<br>
Jens's minipascal might be a good example to look at:<br>
<br>
<a href="https://github.com/soegaard/minipascal" target="_blank">https://github.com/soegaard/minipascal</a><br>
</blockquote><div><br></div><div>The intention was to turn the code into a tutorial, so the code</div><div>is well-commented.</div><div><br></div><div>The grammar is defined here:</div><div><a href="https://github.com/soegaard/minipascal/blob/master/minipascal/mini-pascal-grammar.rkt">https://github.com/soegaard/minipascal/blob/master/minipascal/mini-pascal-grammar.rkt</a></div>
<div><br></div><div>The compilers follow the grammar closely. Being here:</div><div><br></div><div><a href="https://github.com/soegaard/minipascal/blob/master/minipascal/compiler-simple.rkt">https://github.com/soegaard/minipascal/blob/master/minipascal/compiler-simple.rkt</a></div>
<div><br></div><div>The simple compiler uses the same strategy as the Ragg tutorial.</div><div><br></div><div>-- </div><div>Jens Axel Søgaard</div></div>