Mercurial > jsparser
annotate jsparser.html @ 14:95b27aa47788 default tip
parse tree now displays as html.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 31 May 2009 03:57:37 -0700 |
parents | 1b7ea033b3f6 |
children |
rev | line source |
---|---|
10
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
1 <html> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
2 <head> |
11
49145e1db3e5
added an interactive tokenization display.
Atul Varma <varmaa@toolness.com>
parents:
10
diff
changeset
|
3 <link rel="stylesheet" type="text/css" media="all" |
49145e1db3e5
added an interactive tokenization display.
Atul Varma <varmaa@toolness.com>
parents:
10
diff
changeset
|
4 href="jsparser.css" /> |
10
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
5 <title>jsparser demo</title> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
6 </head> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
7 <body> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
8 <p>Input</p> |
13
1b7ea033b3f6
input is interactive now, and tokenization/parsing errors are displayed.
Atul Varma <varmaa@toolness.com>
parents:
11
diff
changeset
|
9 <textarea class="input"> |
10
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
10 5+(1-3) * 4+ |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
11 -4 |
13
1b7ea033b3f6
input is interactive now, and tokenization/parsing errors are displayed.
Atul Varma <varmaa@toolness.com>
parents:
11
diff
changeset
|
12 </textarea> |
11
49145e1db3e5
added an interactive tokenization display.
Atul Varma <varmaa@toolness.com>
parents:
10
diff
changeset
|
13 <p>Tokenization</p> |
49145e1db3e5
added an interactive tokenization display.
Atul Varma <varmaa@toolness.com>
parents:
10
diff
changeset
|
14 <pre class="tokenization"></pre> |
49145e1db3e5
added an interactive tokenization display.
Atul Varma <varmaa@toolness.com>
parents:
10
diff
changeset
|
15 <p>Parse Tree</p> |
14
95b27aa47788
parse tree now displays as html.
Atul Varma <varmaa@toolness.com>
parents:
13
diff
changeset
|
16 <div class="parse-tree"></div> |
10
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
17 </body> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
18 <script src="jquery.js"></script> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
19 <script src="jsparser.js"></script> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
20 <script src="parser-demo.js"></script> |
8de776b8ed31
made the demo work on the web instead of the command line.
Atul Varma <varmaa@toolness.com>
parents:
diff
changeset
|
21 </html> |