Skip to content

Commit 5500ccd

Browse files
authored
Create README.md file
Convert the index.html file to Markdown file.
1 parent e332aaa commit 5500ccd

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

README.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# BNF Grammars for SQL-92, SQL-99 and SQL-2003
2+
3+
4+
## SQL-92
5+
6+
The file [`sql-92.bnf.html`](sql-92.bnf.html) is a heavily hyperlinked HTML
7+
version of the BNF grammar for SQL-92 (ISO/IEC 9075:1992 - Database Language -
8+
SQL).
9+
10+
The plain text file [`sql-92.bnf`](sql-92.bnf), from which it was
11+
automatically converted, is more useful (read legible) for reading
12+
without a browser.
13+
14+
## SQL-99
15+
16+
The file [`sql-99.bnf.html`](sql-99.bnf.html) is a heavily hyperlinked HTML
17+
version of the BNF grammar for SQL-99 (ISO/IEC 9075-2:1999 - Database
18+
Languages - SQL - Part 2: Foundation (SQL/Foundation)).
19+
20+
The plain text file [`sql-99.bnf`](sql-99.bnf), from which it was
21+
automatically converted, is more useful (read legible) for reading
22+
without a browser.
23+
24+
## SQL-2003
25+
26+
The file [`sql-2003-2.bnf.html`](sql-2003-2.bnf.html) is a heavily hyperlinked HTML
27+
version of the BNF grammar for SQL-2003 (ISO/IEC 9075-2:2003 - Database
28+
Languages - SQL - Part 2: Foundation (SQL/Foundation)).
29+
30+
The plain text file [`sql-2003-2.bnf`](sql-2003-2.bnf), from which it was
31+
automatically converted, is more useful (read legible) for reading
32+
without a browser.
33+
34+
35+
There is a separate file [`sql-2003-1.bnf.html`](sql-2003-1.bnf.html) for
36+
the information from ISO/IEC 9075-1:2003 - Database Languages - SQL - Part
37+
1: Framework (SQL/Framework).
38+
39+
It was automatically converted from the plain text file [`sql-2003-1.bnf`](sql-2003-1.bnf),
40+
which is more useful (read legible) for reading without a browser.
41+
42+
43+
Also available:
44+
<bl>
45+
<li> <a href="sql-2003-core-features.html"> SQL 2003 Core Features </a> </li>
46+
<li> <a href="sql-2003-noncore-features.html"> SQL 2003 Non-Core Features </a> </li>
47+
</bl>
48+
49+
## Informix OUTER Join Syntax
50+
51+
The file [`outer-joins.html`](outer-joins.html) is an explanation of the
52+
non-standar Informix OUTER join syntax and semantics.
53+
54+
## Conversion tools
55+
56+
57+
The plain text was converted to HTML by the Perl script
58+
[`bnf2html`](bnf2html.perl.txt) which you may use if you wish.
59+
The `bnf2html` script also uses the C program
60+
WEBCODE version 1.09
61+
which you can download as a [gzipped tar file](webcode-1.09.tgz).
62+
63+
See also [`bnf2yacc`](bnf2yacc.perl.txt), an experimental
64+
script to convert BNF into an outline Yacc grammar.
65+
The generated grammar typically includes some unacceptable tokens, such
66+
as _`%token 0`_, that should be handled by the lexical analyzer
67+
rather than the grammar.
68+
The SQL standard includes such rules as grammar rules; consequently, you won't
69+
get a clean Yacc grammar from the SQL BNF files.
70+
71+
_(The Perl scripts should normally be renamed after downloading.)_
72+
73+
## Download
74+
75+
You can download a gzipped tar file containing the raw grammars, the
76+
HTML versions of those grammars, and the conversion tools as the gzipped
77+
tar file <a href="sql-bnf.tgz"> sql-bnf.tgz </a>.
78+
79+
<hr>
80+
Please send feedback to Jonathan Leffler:
81+
<a href="mailto:jonathan.leffler@gmail.com"> jonathan.leffler@gmail.com </a>.
82+
83+
Last modified:
84+
4th February 2017

0 commit comments

Comments
 (0)