Module lemon.external.gadfly.grammar
SQL grammar, partial, based on ODBC 2.0 programmer's ref
Note: if you change the grammar, you must rebuild the compiled grammar file
by executing this script:
python grammar.py
:Author: Aaron Watters
:Maintainers: http://gadfly.sf.net/
:Copyright: Aaron Robert Watters, 1994
:Id: $Id: grammar.py,v 1.1 2003/08/12 09:17:12 thejimmyg Exp $:
Function Summary |
|
DeclareTerminals(Grammar)
|
Variable Summary |
str |
keywords = '\nINDEX ON ANY IN VIEW AS\nEXCEPT INTERSECT\...
|
str |
nonterms = '\nsliteral\nexists_predicate set_function_re...
|
str |
puncts = '.,*;=<>{}()?+-/'
|
str |
sqlrules = '\n\nstatement_list ::\n\n@R stat1 :: stateme...
|
keywords
-
- Type:
-
str
- Value:
'''
INDEX ON ANY IN VIEW AS
EXCEPT INTERSECT
EXISTS AVG COUNT MAX MIN SUM MEDIAN
UPDATE DROP DELETE FROM SET
INSERT INTO VALUES CREATE TABLE INTEGER FLOAT VARCHAR
AND OR NOT
SELECT FROM WHERE HAVING GROUP BY UNION ALL DISTINCT AS ORDER
...
|
|
nonterms
-
- Type:
-
str
- Value:
'''
sliteral
exists_predicate set_function_reference aggregate
sortspeclist sort_specification opt_ord
drop_table_statement delete_statement_searched update_statement_search\
ed
assns assn
insert_statement litlist colelt optcolconstraints optdefault
...
|
|
sqlrules
-
- Type:
-
str
- Value:
'''
statement_list ::
@R stat1 :: statement_list >> statement
@R statn :: statement_list >> statement ; statement_list
@R dropindexstat :: statement >> drop_index_statement
...
|
|