|
| 1 | +<!-- @(#)$Id: index.html,v 1.8 2017/01/21 16:32:29 jleffler Exp $ --> |
| 2 | + |
| 3 | +<html> |
| 4 | +<head> |
| 5 | +<title> BNF Grammars for SQL-92, SQL-99 and SQL-2003 </title> |
| 6 | +</head> |
| 7 | + |
| 8 | +<body bgcolor="WHITE"> |
| 9 | +<h1> BNF Grammars for SQL-92, SQL-99 and SQL-2003 </h1> |
| 10 | + |
| 11 | +<h2> SQL-92 </h2> |
| 12 | + |
| 13 | +Here is a heavily hyperlinked <a href="sql-92.bnf.html"> HTML </a> |
| 14 | +version of the BNF grammar for SQL-92 (ISO/IEC 9075:1992 - Database Language - |
| 15 | +SQL). |
| 16 | + |
| 17 | +The <a href="sql-92.bnf"> plain text </a> file from which it was |
| 18 | +automatically converted is more useful (read legible) for reading |
| 19 | +without a browser. |
| 20 | + |
| 21 | +<h2> SQL-99 </h2> |
| 22 | + |
| 23 | +Here is a heavily hyperlinked <a href="sql-99.bnf.html"> HTML </a> |
| 24 | +version of the BNF grammar for SQL-99 (ISO/IEC 9075-2:1999 - Database |
| 25 | +Languages - SQL - Part 2: Foundation (SQL/Foundation)). |
| 26 | + |
| 27 | +The <a href="sql-99.bnf"> plain text </a> file from which it was |
| 28 | +automatically converted is more useful (read legible) for reading |
| 29 | +without a browser. |
| 30 | + |
| 31 | +<h2> SQL-2003 </h2> |
| 32 | +<p> |
| 33 | +Here is a heavily hyperlinked <a href="sql-2003-2.bnf.html"> HTML </a> |
| 34 | +version of the BNF grammar for SQL-2003 (ISO/IEC 9075-2:2003 - Database |
| 35 | +Languages - SQL - Part 2: Foundation (SQL/Foundation)). |
| 36 | + |
| 37 | +The <a href="sql-2003-2.bnf"> plain text </a> file from which it was |
| 38 | +automatically converted is more useful (read legible) for reading |
| 39 | +without a browser. |
| 40 | +</p> |
| 41 | + |
| 42 | +<p> |
| 43 | +There is a separate file <a href="sql-2003-1.bnf.html"> HTML </a> for |
| 44 | +the information from ISO/IEC 9075-1:2003 - Database Languages - SQL - Part |
| 45 | +1: Framework (SQL/Framework). |
| 46 | + |
| 47 | +It was automatically converted from the <a href="sql-2003-1.bnf"> plain |
| 48 | +text </a> file, which is more useful (read legible) for reading without |
| 49 | +a browser. |
| 50 | +</p> |
| 51 | + |
| 52 | +<p> |
| 53 | +Also available: |
| 54 | +<bl> |
| 55 | +<li> <a href="sql-2003-core-features.html"> SQL 2003 Core Features </a> </li> |
| 56 | +<li> <a href="sql-2003-noncore-features.html"> SQL 2003 Non-Core Features </a> </li> |
| 57 | +</bl> |
| 58 | + |
| 59 | +<h2> Informix OUTER Join Syntax </h2> |
| 60 | + |
| 61 | +Here is an <a href="outer-joins.html"> HTML </a> explanation of the |
| 62 | +Informix OUTER join syntax. |
| 63 | + |
| 64 | +<h2> Conversion tools </h2> |
| 65 | + |
| 66 | +<p> |
| 67 | +The plain text was converted to HTML by the Perl script |
| 68 | +<a href="bnf2html.perl.txt"> bnf2html </a> which you may use if you wish. |
| 69 | +The bnf2html script also uses the C program |
| 70 | +<a href="webcode-1.09.tgz"> WEBCODE version 1.09 </a> |
| 71 | +which you can download as a gzipped tar file. |
| 72 | +</p> |
| 73 | + |
| 74 | +<p> |
| 75 | +See also <a href="bnf2yacc.perl.txt"> bnf2yacc </a>, an experimental |
| 76 | +script to convert BNF into an outline Yacc grammar. |
| 77 | +The generated grammar typically includes some unacceptable tokens, such |
| 78 | +as <i>%token 0</i>, that should be handled by the lexical analyzer |
| 79 | +rather than the grammar. |
| 80 | +The SQL standard includes such rules as grammar rules. |
| 81 | +</p> |
| 82 | + |
| 83 | +<p> |
| 84 | +<i>(The Perl scripts should normally be renamed after downloading.)</i> |
| 85 | +</p> |
| 86 | + |
| 87 | +<h2> Download </h2> |
| 88 | + |
| 89 | +You can download a gzipped tar file containing the raw grammars, the |
| 90 | +HTML versions of those grammars, and the conversion tools as the gzipped |
| 91 | +tar file <a href="sql-bnf.tgz"> sql-bnf.tgz </a>. |
| 92 | + |
| 93 | +<hr> |
| 94 | +Please send feedback to Jonathan Leffler, variously: |
| 95 | +<a href="mailto:jleffler@us.ibm.com"> jleffler@us.ibm.com </a> or |
| 96 | +<a href="mailto:jonathan.leffler@gmail.com"> jonathan.leffler@gmail.com </a>. |
| 97 | +<p> |
| 98 | +Last modified: |
| 99 | +21st January 2017 |
| 100 | +</body> |
| 101 | +</html> |
0 commit comments