Mercurial > jsparser
comparison jsparser.html @ 11:49145e1db3e5
added an interactive tokenization display.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 30 May 2009 16:38:20 -0700 |
parents | 8de776b8ed31 |
children | 1b7ea033b3f6 |
comparison
equal
deleted
inserted
replaced
10:8de776b8ed31 | 11:49145e1db3e5 |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" type="text/css" media="all" | |
4 href="jsparser.css" /> | |
3 <title>jsparser demo</title> | 5 <title>jsparser demo</title> |
4 </head> | 6 </head> |
5 <body> | 7 <body> |
6 <p>Input</p> | 8 <p>Input</p> |
7 <pre class="input"> | 9 <pre class="input"> |
8 5+(1-3) * 4+ | 10 5+(1-3) * 4+ |
9 -4 | 11 -4 |
10 </pre> | 12 </pre> |
11 <p>Output</p> | 13 <p>Tokenization</p> |
12 <pre class="output"></pre> | 14 <pre class="tokenization"></pre> |
15 <p>Parse Tree</p> | |
16 <pre class="parse-tree"></pre> | |
13 </body> | 17 </body> |
14 <script src="jquery.js"></script> | 18 <script src="jquery.js"></script> |
15 <script src="jsparser.js"></script> | 19 <script src="jsparser.js"></script> |
16 <script src="parser-demo.js"></script> | 20 <script src="parser-demo.js"></script> |
17 </html> | 21 </html> |