2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: par_proto.h
|
2003-11-07 09:06:35 +01:00
|
|
|
* DESCRIPTION: Prototype header file for par.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.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 was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_PAR_PROTO_H
|
|
|
|
#define JRD_PAR_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
2004-03-28 11:10:30 +02:00
|
|
|
class CompilerScratch;
|
2004-03-20 15:57:40 +01:00
|
|
|
class jrd_rel;
|
|
|
|
class jrd_req;
|
2010-04-19 00:19:11 +02:00
|
|
|
class JrdStatement;
|
2006-08-30 06:54:44 +02:00
|
|
|
class thread_db;
|
2007-01-17 02:19:01 +01:00
|
|
|
struct ItemInfo;
|
2010-10-12 13:36:51 +02:00
|
|
|
class BoolExprNode;
|
2010-12-04 23:15:03 +01:00
|
|
|
class CompoundStmtNode;
|
2008-05-19 15:47:48 +02:00
|
|
|
class DmlNode;
|
2010-12-04 23:15:03 +01:00
|
|
|
class MessageNode;
|
2010-10-12 13:36:51 +02:00
|
|
|
class SortNode;
|
2010-12-04 23:15:03 +01:00
|
|
|
class StmtNode;
|
2010-11-21 04:47:29 +01:00
|
|
|
class ValueExprNode;
|
|
|
|
class ValueListNode;
|
2004-03-20 15:57:40 +01:00
|
|
|
}
|
2004-03-11 06:04:26 +01:00
|
|
|
|
2004-03-28 11:10:30 +02:00
|
|
|
struct dsc;
|
|
|
|
|
2010-11-21 04:47:29 +01:00
|
|
|
Jrd::ValueListNode* PAR_args(Jrd::thread_db*, Jrd::CompilerScratch*, UCHAR, USHORT);
|
|
|
|
Jrd::ValueListNode* PAR_args(Jrd::thread_db*, Jrd::CompilerScratch*);
|
2010-12-04 23:15:03 +01:00
|
|
|
Jrd::DmlNode* PAR_blr(Jrd::thread_db*, Jrd::jrd_rel*, const UCHAR*, ULONG blr_length,
|
2010-10-12 13:36:51 +02:00
|
|
|
Jrd::CompilerScratch*, Jrd::CompilerScratch**, Jrd::JrdStatement**, const bool, USHORT);
|
|
|
|
void PAR_validation_blr(Jrd::thread_db*, Jrd::jrd_rel*, const UCHAR* blr,
|
|
|
|
ULONG blr_length, Jrd::CompilerScratch*, Jrd::CompilerScratch**, USHORT,
|
2010-12-04 23:15:03 +01:00
|
|
|
Jrd::BoolExprNode**, Jrd::StmtNode**);
|
2012-04-12 11:02:13 +02:00
|
|
|
StreamType PAR_context(Jrd::CompilerScratch*, SSHORT*);
|
|
|
|
void PAR_dependency(Jrd::thread_db* tdbb, Jrd::CompilerScratch* csb, StreamType stream,
|
|
|
|
SSHORT id, const Firebird::MetaName& field_name);
|
2011-07-10 03:23:53 +02:00
|
|
|
USHORT PAR_datatype(Jrd::thread_db*, Jrd::BlrReader&, dsc*);
|
2007-01-17 02:19:01 +01:00
|
|
|
USHORT PAR_desc(Jrd::thread_db*, Jrd::CompilerScratch*, dsc*, Jrd::ItemInfo* = NULL);
|
2010-01-05 18:32:42 +01:00
|
|
|
void PAR_error(Jrd::CompilerScratch*, const Firebird::Arg::StatusVector&, bool isSyntaxError = true);
|
2010-11-14 18:25:48 +01:00
|
|
|
SSHORT PAR_find_proc_field(const Jrd::jrd_prc*, const Firebird::MetaName&);
|
2012-04-12 11:02:13 +02:00
|
|
|
Jrd::ValueExprNode* PAR_gen_field(Jrd::thread_db* tdbb, StreamType stream, USHORT id, bool byId = false);
|
2010-12-04 23:15:03 +01:00
|
|
|
Jrd::ValueExprNode* PAR_make_field(Jrd::thread_db*, Jrd::CompilerScratch*, USHORT, const Firebird::MetaName&);
|
|
|
|
Jrd::CompoundStmtNode* PAR_make_list(Jrd::thread_db*, Jrd::StmtNodeStack&);
|
2009-10-24 19:45:33 +02:00
|
|
|
USHORT PAR_name(Jrd::CompilerScratch*, Firebird::MetaName&);
|
|
|
|
size_t PAR_name(Jrd::CompilerScratch* csb, Firebird::string& name);
|
2009-08-05 14:30:32 +02:00
|
|
|
Jrd::CompilerScratch* PAR_parse(Jrd::thread_db*, const UCHAR* blr, ULONG blr_length,
|
2011-01-28 18:12:22 +01:00
|
|
|
bool internal_flag, ULONG = 0, const UCHAR* = NULL);
|
Refactored the support for blr_handler, blr_loop, blr_exec_sql, blr_exec_into, blr_exec_stmt,
blr_start_savepoint, blr_end_savepoint, blr_store, blr_store2, blr_erase, blr_modify,
blr_modify2, blr_exec_proc, blr_exec_proc2, blr_exec_pid, blr_dcl_cursor, blr_cursor_stmt,
blr_set_generator, blr_receive, blr_stall, blr_select, blr_block, blr_error_handler,
blr_label, blr_leave, blr_continue and the source info node.
2010-11-29 03:17:04 +01:00
|
|
|
|
|
|
|
Jrd::RecordSourceNode* PAR_parseRecordSource(Jrd::thread_db* tdbb, Jrd::CompilerScratch* csb);
|
2010-10-12 13:36:51 +02:00
|
|
|
void PAR_procedure_parms(Jrd::thread_db*, Jrd::CompilerScratch*, Jrd::jrd_prc*,
|
2010-12-04 23:15:03 +01:00
|
|
|
Jrd::MessageNode**, Jrd::ValueListNode**, Jrd::ValueListNode**, bool input_flag);
|
2010-11-21 04:47:29 +01:00
|
|
|
Jrd::RseNode* PAR_rse(Jrd::thread_db*, Jrd::CompilerScratch*, SSHORT);
|
|
|
|
Jrd::RseNode* PAR_rse(Jrd::thread_db*, Jrd::CompilerScratch*);
|
|
|
|
Jrd::SortNode* PAR_sort(Jrd::thread_db*, Jrd::CompilerScratch*, UCHAR, bool);
|
|
|
|
Jrd::SortNode* PAR_sort_internal(Jrd::thread_db*, Jrd::CompilerScratch*, UCHAR blrOp,
|
2010-10-12 13:36:51 +02:00
|
|
|
USHORT);
|
2008-09-03 13:23:00 +02:00
|
|
|
SLONG PAR_symbol_to_gdscode(const Firebird::string&);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2009-10-24 19:45:33 +02:00
|
|
|
typedef Jrd::DmlNode* (*NodeParseFunc)(Jrd::thread_db* tdbb, MemoryPool& pool,
|
|
|
|
Jrd::CompilerScratch* csb, UCHAR blrOp);
|
2003-11-07 09:06:35 +01:00
|
|
|
|
2010-10-12 13:36:51 +02:00
|
|
|
Jrd::BoolExprNode* PAR_parse_boolean(Jrd::thread_db* tdbb, Jrd::CompilerScratch* csb);
|
2010-11-21 04:47:29 +01:00
|
|
|
Jrd::ValueExprNode* PAR_parse_value(Jrd::thread_db* tdbb, Jrd::CompilerScratch* csb);
|
2010-12-04 23:15:03 +01:00
|
|
|
Jrd::StmtNode* PAR_parse_stmt(Jrd::thread_db* tdbb, Jrd::CompilerScratch* csb);
|
|
|
|
Jrd::DmlNode* PAR_parse_node(Jrd::thread_db* tdbb, Jrd::CompilerScratch* csb);
|
2008-05-19 15:47:48 +02:00
|
|
|
void PAR_register(UCHAR blr, NodeParseFunc parseFunc);
|
|
|
|
void PAR_syntax_error(Jrd::CompilerScratch* csb, const TEXT* string);
|
2010-04-05 20:43:11 +02:00
|
|
|
void PAR_warning(const Firebird::Arg::StatusVector& v);
|
2008-05-19 15:47:48 +02:00
|
|
|
|
|
|
|
#endif // JRD_PAR_PROTO_H
|