Mercurial > repos > tabletprog
annotate testparse.html @ 242:0e7982adc76b
Make the successful return value from a match expression be truthy and the failure value false. This avoids an extra method call when checking the result and avoids allocating a new object when a match fails.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 05 Jan 2014 20:56:25 -0800 |
parents | 668f533e5284 |
children |
rev | line source |
---|---|
0 | 1 <!DOCTYPE html> |
3
4a4bb90fb298
Update formatting on parse tester page
Mike Pavone <pavone@retrodev.com>
parents:
0
diff
changeset
|
2 <html style="height: 100%"> |
0 | 3 <head> |
4 <title>Parser Test</title> | |
5 <script src="peg.js"></script> | |
6 <script src="mquery.js"></script> | |
7 <script src="parser.js"></script> | |
8
04ae32e91598
Move compiler and test page related code out of parser.js
Mike Pavone <pavone@retrodev.com>
parents:
6
diff
changeset
|
8 <script src="compiler.js"></script> |
04ae32e91598
Move compiler and test page related code out of parser.js
Mike Pavone <pavone@retrodev.com>
parents:
6
diff
changeset
|
9 <script src="jsbackend.js"></script> |
31
668f533e5284
Add initial version of C backend
Mike Pavone <pavone@retrodev.com>
parents:
8
diff
changeset
|
10 <script src="cbackend.js"></script> |
8
04ae32e91598
Move compiler and test page related code out of parser.js
Mike Pavone <pavone@retrodev.com>
parents:
6
diff
changeset
|
11 <script src="testparse.js"></script> |
0 | 12 </head> |
3
4a4bb90fb298
Update formatting on parse tester page
Mike Pavone <pavone@retrodev.com>
parents:
0
diff
changeset
|
13 <body style="height: 100%"> |
4a4bb90fb298
Update formatting on parse tester page
Mike Pavone <pavone@retrodev.com>
parents:
0
diff
changeset
|
14 <textarea style="width: 90%; height: 50%; display: block; margin: 0 auto;"></textarea> |
6
554602d4cbc6
Javascript compiler backend
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
15 <input id="parse" type="button" value="Parse!" style="width: 90%;display: block; margin: 0 auto;"> |
554602d4cbc6
Javascript compiler backend
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
16 <input id="tojs" type="button" value="To Javascript!" style="width: 90%;display: block; margin: 0 auto;"> |
31
668f533e5284
Add initial version of C backend
Mike Pavone <pavone@retrodev.com>
parents:
8
diff
changeset
|
17 <input id="toc" type="button" value="To C!" style="width: 90%; display: block; margin: 0 auto;"> |
6
554602d4cbc6
Javascript compiler backend
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
18 <input id="run" type="button" value="Run!" style="width: 90%;display: block; margin: 0 auto;"> |
554602d4cbc6
Javascript compiler backend
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
19 <pre> |
554602d4cbc6
Javascript compiler backend
Mike Pavone <pavone@retrodev.com>
parents:
3
diff
changeset
|
20 </pre> |
0 | 21 </body> |
22 </html> |