From 9c5178b26232e7362eb4c893d24ceb27b32f052a Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Mon, 25 Feb 2013 07:14:18 +0300 Subject: [PATCH 1/2] Revive old web/jison graphs and tables, see also #156 --- web/jison/index.html | 95 +++---------------------------------------- web/jison/states.html | 28 +++++++------ web/jison/usf.html | 35 ++++++++-------- 3 files changed, 40 insertions(+), 118 deletions(-) diff --git a/web/jison/index.html b/web/jison/index.html index b13a7c0f4..56ec015cd 100644 --- a/web/jison/index.html +++ b/web/jison/index.html @@ -1,100 +1,17 @@ - + - + - Jison, parse table visualation page + Jison, parse table visualation pages - - - - - - - - - - - - -
-
-

Jison is a parser generator written in JavaScript. This page uses Jison to display an interactive parsing table based on the grammar and parsing algorithm chosen, which can be very helpful for debugging.

+ -

Special thanks to Dr. Ligatti for suggesting and giving feedback on the initial interface.

- -

Input

- -

Input a BNF grammar along with a token list and optional start symbol, in JSON format. -

- -

- Load an example: - -

- - - -

- Parser type: - * WARNING: LR(1) may take considerable time to execute for large/ambigous grammars. -

-

-

- - -

Output

-

Process your grammar to see the result here.

-
-
- - -
-

Parse a program

-

Grammars with lexing information allow for parsing. Use the form below to parse a program using your grammar:

-
- -

Result

- -
- -
- -

- Zach Carter (zcarter@mail.usf.edu) 2009 -

- -
- + diff --git a/web/jison/states.html b/web/jison/states.html index 0a4afe695..e5dbfa3a3 100644 --- a/web/jison/states.html +++ b/web/jison/states.html @@ -7,18 +7,20 @@ Jison, parse table visualation page - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + @@ -24,19 +25,21 @@
-

Jison

+

Jison is a parser generator written in JavaScript. This page uses Jison to display an interactive parsing table based on the grammar and parsing algorithm chosen, which can be very helpful for debugging.

-

Special thanks to Dr. Ligatti for suggesting and giving feedback on the interface.

+
+

Special thanks to Dr. Ligatti for suggesting and giving feedback on the initial interface.

+

Input

-

Input a BNF grammar along with a token list and optional start symbol, in JSON format. +

Input a BNF grammar along with a token list and optional start symbol, in JSON format.

Load an example:

Result

- +

- Zach Carter (zcarter@mail.usf.edu) 2009 + Zach Carter (zcarter@mail.usf.edu) 2009

- + From 453db857a76267c1e6292700e9422b58301040fb Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Mon, 25 Feb 2013 14:35:29 +0300 Subject: [PATCH 2/2] web: Fix a few HTML errors and remove unused CSS --- web/content/assets/styles/try.css | 7 ------- web/content/assets/styles/usf.css | 7 ------- web/content/try/usf.html | 8 ++++---- web/jison/usf.html | 4 +--- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/web/content/assets/styles/try.css b/web/content/assets/styles/try.css index f6c402a81..d623ec7e8 100644 --- a/web/content/assets/styles/try.css +++ b/web/content/assets/styles/try.css @@ -5,13 +5,6 @@ a img { border: 0px; } width: 100%; } -#intro { - font-size: 2em; - -moz-border-radius: 8px; - background-color: #eee; -} -#intro p { margin: 1em 1em; padding: 1em 0em; } - #table table, #productions li, #nonterminals dl { font-family: monospace; } diff --git a/web/content/assets/styles/usf.css b/web/content/assets/styles/usf.css index 8c16e01c7..65fbceb25 100644 --- a/web/content/assets/styles/usf.css +++ b/web/content/assets/styles/usf.css @@ -5,13 +5,6 @@ a img { border: 0px; } width: 100%; } -#intro { - font-size: 2em; - -moz-border-radius: 8px; - background-color: #eee; -} -#intro p { margin: 1em 1em; padding: 1em 0em; } - #table table, #productions li, #nonterminals dl { font-family: monospace; } diff --git a/web/content/try/usf.html b/web/content/try/usf.html index 1dfe12fb0..e632cbbc5 100644 --- a/web/content/try/usf.html +++ b/web/content/try/usf.html @@ -23,7 +23,7 @@

Input

Load an example:

Result

- +

- Zach Carter (zcarter@mail.usf.edu) 2009 + Zach Carter (zcarter@mail.usf.edu) 2009

@@ -89,4 +89,4 @@

Result

- + diff --git a/web/jison/usf.html b/web/jison/usf.html index 12f58d916..3a24cb92e 100644 --- a/web/jison/usf.html +++ b/web/jison/usf.html @@ -25,9 +25,7 @@
-
-

Jison is a parser generator written in JavaScript. This page uses Jison to display an interactive parsing table based on the grammar and parsing algorithm chosen, which can be very helpful for debugging.

-
+

Jison is a parser generator written in JavaScript. This page uses Jison to display an interactive parsing table based on the grammar and parsing algorithm chosen, which can be very helpful for debugging.

Special thanks to Dr. Ligatti for suggesting and giving feedback on the initial interface.