Mercurial > repos > tabletprog
view testparse.html @ 19:132c7756860e
Use populateSymbols to generate symbol tables during compilation rather than populating them as we go. This change allows us to refer to symbols defined later in the input stream and also gives the symbol table logic a single home that can be used both by the compiler and editor.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 25 Mar 2012 16:11:19 -0700 |
parents | 04ae32e91598 |
children | 668f533e5284 |
line wrap: on
line source
<!DOCTYPE html> <html style="height: 100%"> <head> <title>Parser Test</title> <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="testparse.js"></script> </head> <body style="height: 100%"> <textarea style="width: 90%; height: 50%; display: block; margin: 0 auto;"></textarea> <input id="parse" type="button" value="Parse!" style="width: 90%;display: block; margin: 0 auto;"> <input id="tojs" type="button" value="To Javascript!" style="width: 90%;display: block; margin: 0 auto;"> <input id="run" type="button" value="Run!" style="width: 90%;display: block; margin: 0 auto;"> <pre> </pre> </body> </html>