Changeset: e4eea452ae77 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e4eea452ae77 Modified Files: sql/src/server/sql_parser.mx Branch: sciql Log Message:
Get rid of old file. diffs (truncated from 5433 to 300 lines): diff -r d9e4cdb4d1c7 -r e4eea452ae77 sql/src/server/sql_parser.mx --- a/sql/src/server/sql_parser.mx Sat Nov 27 10:44:52 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5429 +0,0 @@ -/* - * The contents of this file are subject to the MonetDB Public License - * Version 1.1 (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at - * http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html - * - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - * License for the specific language governing rights and limitations - * under the License. - * - * The Original Code is the MonetDB Database System. - * - * The Initial Developer of the Original Code is CWI. - * Portions created by CWI are Copyright (C) 1997-July 2008 CWI. - * Copyright August 2008-2010 MonetDB B.V. - * All Rights Reserved. - */ - -%{ -#include "sql_config.h" -#include <sql_mem.h> -#include "sql_parser.h" -#include "sql_symbol.h" -#include "sql_datetime.h" -#include "sql_decimal.h" /* for decimal_from_str() */ -#include "sql_semantic.h" /* for sql_add_param() & sql_add_arg() */ -#include "sql_env.h" -#include "rel_sequence.h" /* for sql_next_seq_name() */ - -#include <unistd.h> -#include <string.h> -#include <stdlib.h> - -#define SA (((mvc*)parm)->sa) -#define _symbol_create(t,d) symbol_create( SA, t, d) -#define _symbol_create_list(t,d) symbol_create_list( SA, t, d) -#define _symbol_create_int(t,d) symbol_create_int( SA, t, d) -#define _symbol_create_lng(t,d) symbol_create_lng( SA, t, d) -#define _symbol_create_symbol(t,d) symbol_create_symbol( SA, t, d) -#define _symbol_create_hexa(t,d) symbol_create_hexa( SA, t, d) -#define _newAtomNode(d) newAtomNode( SA, d) - -#define L() dlist_create( SA ) - -#define append_list(l,d) dlist_append_list( SA, l, d) -#define append_int(l,d) dlist_append_int( SA, l, d) -#define append_lng(l,d) dlist_append_lng( SA, l, d) -#define append_symbol(l,d) dlist_append_symbol( SA, l, d) -#define append_string(l,d) dlist_append_string( SA, l, d) -#define append_type(l,d) dlist_append_type( SA, l, d) - -#define _atom_string(t, v) atom_string2(SA, t, v, 0) - -#define YYPARSE_PARAM parm -#define YYLEX_PARAM parm -#ifdef yyerror -#undef yyerror -#endif -#define yyerror(s) parse_error(YYLEX_PARAM, s) -#define sqlerror(s) parse_error(YYLEX_PARAM, s) /* needed for bison++ 1.21.11-3 */ - -#define YYMALLOC malloc -#define YYFREE free - -#define YY_parse_LSP_NEEDED /* needed for bison++ 1.21.11-3 */ - -#define FALSE 0 -#define TRUE 1 - -%} -/* KNOWN NOT DONE OF sql'99 - * - * COLLATION - * TRANSLATION - * REF/SCOPE - * UDT - */ - -/* reentrant parser */ -%pure_parser -%union { - int i_val,bval; - wrd w_val; - lng l_val,operation; - double fval; - char * sval; - symbol* sym; - dlist* l; - sql_subtype type; -} -%{ -extern int sqllex( YYSTYPE *yylval, void *m ); -/* enable to activate debugging support -int yydebug=1; -*/ -%} - - /* symbolic tokens */ -%type <sym> - user_passwd - alter_statement - assignment - create_statement - drop_statement - declare_statement - set_statement - sql - sqlstmt - schema - opt_schema_default_char_set - opt_path_specification - path_specification - schema_element - delete_stmt - copyfrom_stmt - table_def - view_def - query_expression - role_def - type_def - func_def - index_def - seq_def - all_or_any_predicate - like_exp - between_predicate - comparison_predicate - opt_from_clause - existence_test - in_predicate - insert_stmt - transaction_statement - _transaction_stmt - like_predicate - opt_where_clause - opt_having_clause - opt_group_by_clause - predicate - joined_table - join_spec - search_condition - and_exp - not_exp - update_statement - sql_connections_statement - update_stmt - connect_stmt - disconnect_stmt - control_statement - select_statement_single_row - call_statement - call_procedure_statement - routine_invocation - return_statement - return_value - case_statement - when_statement - when_search_statement - if_statement - while_statement - simple_select - select_no_parens - select_no_parens_orderby - subquery - test_for_null - values_or_query_spec - grant - revoke - operation - table_content_source - table_element - add_table_element - alter_table_element - drop_table_element - table_constraint - table_constraint_type - column_def - column_options - column_option - column_constraint - column_constraint_type - generated_column - like_table - domain_constraint_type - opt_order_by_clause - default - default_value - cast_value - aggr_ref - var_ref - func_ref - datetime_funcs - string_funcs - scalar_exp - pred_exp - simple_scalar_exp - value_exp - column_exp - atom - insert_atom - simple_atom - value - literal - null - interval_expression - ordering_spec - simple_table - table_ref - opt_limit - opt_offset - param - case_exp - case_scalar_exp - cast_exp - when_value - when_search - case_opt_else - table_name - object_name - exec - exec_ref - trigger_def - trigger_event - opt_when - procedure_statement - trigger_procedure_statement - if_opt_else - func_data_type - with_list_element - window_function - window_function_type - window_partition_clause - window_order_clause - XML_value_function - XML_comment - XML_concatenation - XML_document - XML_element - XML_forest - XML_parse - XML_PI - XML_query - XML_text - XML_validate - XML_namespace_declaration - opt_XML_namespace_declaration_and_comma - XML_namespace_declaration_item_list - XML_namespace_declaration_item - XML_regular_namespace_declaration_item - XML_default_namespace_declaration_item - XML_namespace_URI - XML_attributes - XML_attribute_list - XML_attribute - XML_attribute_value - XML_element_content - forest_element_value - XML_aggregate - XML_value_expression - XML_primary - opt_comma_string_value_expression - - group_item - dimension - array_element - -%type <type> - data_type - datetime_type - interval_type - -%type <sval> - opt_lang - opt_db_alias - opt_constraint_name - non_reserved_word - ident - authorization_identifier - func_ident - restricted_ident - column - authid - grantee - opt_alias_name - opt_to_savepoint - opt_using - opt_null_string - string - type_alias - varchar - clob - blob - opt_begin_label - opt_end_label - target_specification _______________________________________________ Checkin-list mailing list [email protected] http://mail.monetdb.org/mailman/listinfo/checkin-list
