geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "general.h"
#include <ctype.h>
#include <setjmp.h>
#include "debug.h"
#include "entry.h"
#include "keyword.h"
#include "parse.h"
#include "read.h"
#include "routines.h"
#include "vstring.h"
Go to the source code of this file.
Classes | |
struct | sTokenInfoSQL |
Macros | |
#define | isType(token, t) (bool) ((token)->type == (t)) |
#define | isKeyword(token, k) (bool) ((token)->keyword == (k)) |
Typedefs | |
typedef enum eException | exception_t |
typedef int | keywordId |
typedef enum eTokenType | tokenType |
typedef struct sTokenInfoSQL | tokenInfo |
Functions | |
static void | parseBlock (tokenInfo *const token, const bool local) |
static void | parseDeclare (tokenInfo *const token, const bool local) |
static void | parseKeywords (tokenInfo *const token) |
static void | parseSqlFile (tokenInfo *const token) |
static bool | isIdentChar1 (const int c) |
static bool | isIdentChar (const int c) |
static bool | isCmdTerm (tokenInfo *const token) |
static bool | isMatchedEnd (tokenInfo *const token, int nest_lvl) |
static tokenInfo * | newToken (void) |
static void | deleteToken (tokenInfo *const token) |
static int | analyzeToken (vString *const name, langType language) |
static void | makeSqlTag (tokenInfo *const token, const sqlKind kind) |
static void | parseString (vString *const string, const int delimiter) |
static void | parseIdentifier (vString *const string, const int firstChar) |
static void | readToken (tokenInfo *const token) |
static void | readIdentifier (tokenInfo *const token) |
static void | addToScope (tokenInfo *const token, vString *const extra, sqlKind kind) |
static void | findToken (tokenInfo *const token, const tokenType type) |
static void | findCmdTerm (tokenInfo *const token, const bool check_first) |
static void | skipToMatched (tokenInfo *const token) |
static void | copyToken (tokenInfo *const dest, tokenInfo *const src) |
static void | skipArgumentList (tokenInfo *const token) |
static void | parseSubProgram (tokenInfo *const token) |
static void | parseRecord (tokenInfo *const token) |
static void | parseType (tokenInfo *const token) |
static void | parseSimple (tokenInfo *const token, const sqlKind kind) |
static void | parseDeclareANSI (tokenInfo *const token, const bool local) |
static void | parseLabel (tokenInfo *const token) |
static void | parseStatements (tokenInfo *const token, const bool exit_on_endif) |
static void | parsePackage (tokenInfo *const token) |
static void | parseTable (tokenInfo *const token) |
static void | parseIndex (tokenInfo *const token) |
static void | parseEvent (tokenInfo *const token) |
static void | parseTrigger (tokenInfo *const token) |
static void | parsePublication (tokenInfo *const token) |
static void | parseService (tokenInfo *const token) |
static void | parseDomain (tokenInfo *const token) |
static void | parseDrop (tokenInfo *const token) |
static void | parseVariable (tokenInfo *const token) |
static void | parseSynonym (tokenInfo *const token) |
static void | parseView (tokenInfo *const token) |
static void | parseMLTable (tokenInfo *const token) |
static void | parseMLConn (tokenInfo *const token) |
static void | parseMLProp (tokenInfo *const token) |
static void | parseComment (tokenInfo *const token) |
static void | initialize (const langType language) |
static void | findSqlTags (void) |
parserDefinition * | SqlParser (void) |
Variables | |
static langType | Lang_sql |
static jmp_buf | Exception |
static kindDefinition | SqlKinds [] |
static const keywordTable | SqlKeywordTable [] |
#define isKeyword | ( | token, | |
k | |||
) | (bool) ((token)->keyword == (k)) |
Definition at line 45 of file geany_sql.c.
#define isType | ( | token, | |
t | |||
) | (bool) ((token)->type == (t)) |
Definition at line 44 of file geany_sql.c.
typedef enum eException exception_t |
typedef int keywordId |
Definition at line 130 of file geany_sql.c.
typedef struct sTokenInfoSQL tokenInfo |
typedef enum eTokenType tokenType |
enum eException |
Definition at line 51 of file geany_sql.c.
enum eKeywordId |
Definition at line 56 of file geany_sql.c.
enum eTokenType |
Definition at line 132 of file geany_sql.c.
enum sqlKind |
Definition at line 176 of file geany_sql.c.
Definition at line 683 of file geany_sql.c.
References tokenInfo::scope, tokenInfo::scopeKind, vStringCatS(), vStringLength, and vStringValue.
Referenced by parseIndex(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parseSubProgram(), parseTrigger(), and parseType().
Definition at line 420 of file geany_sql.c.
References lookupKeyword(), name, vStringCopyToLower(), vStringDelete(), vStringNew(), and vStringValue.
Referenced by readToken().
Definition at line 772 of file geany_sql.c.
References tokenInfo::filePosition, tokenInfo::keyword, tokenInfo::lineNumber, tokenInfo::scope, tokenInfo::scopeKind, tokenInfo::string, tokenInfo::type, and vStringCopy().
Referenced by parseSubProgram().
|
static |
Definition at line 413 of file geany_sql.c.
References eFree(), tokenInfo::scope, tokenInfo::string, and vStringDelete().
Referenced by findSqlTags(), parseDeclareANSI(), parseDomain(), parseEvent(), parseIndex(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parsePublication(), parseService(), parseSubProgram(), parseSynonym(), parseTable(), parseTrigger(), parseType(), parseVariable(), parseView(), and readIdentifier().
|
static |
Definition at line 705 of file geany_sql.c.
References isCmdTerm(), isMatchedEnd(), and readToken().
Referenced by parseComment(), parseDomain(), parseDrop(), parseEvent(), parseIndex(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parsePublication(), parseService(), parseSynonym(), parseTable(), parseTrigger(), parseVariable(), and parseView().
|
static |
Definition at line 2327 of file geany_sql.c.
References deleteToken(), Exception, ExceptionNone, newToken(), and parseSqlFile().
Referenced by SqlParser().
Definition at line 697 of file geany_sql.c.
References isType, and readToken().
Referenced by parseComment(), parseDeclare(), parseDeclareANSI(), parseMLConn(), parseMLProp(), and parseMLTable().
|
static |
Definition at line 2321 of file geany_sql.c.
References ARRAY_SIZE, Assert, Lang_sql, SqlKinds, and SQLTAG_COUNT.
Referenced by SqlParser().
|
static |
Definition at line 339 of file geany_sql.c.
References DEBUG_PARSE, debugPrintf(), DebugStatement, isKeyword, isType, tokenInfo::keyword, KEYWORD_go, TOKEN_FORWARD_SLASH, TOKEN_SEMICOLON, TOKEN_TILDE, and tokenInfo::type.
Referenced by findCmdTerm(), parseBlock(), parseStatements(), parseSubProgram(), and parseTrigger().
|
static |
Definition at line 332 of file geany_sql.c.
Referenced by parseIdentifier().
|
static |
Definition at line 320 of file geany_sql.c.
Referenced by parseIdentifier(), and readToken().
|
static |
Definition at line 368 of file geany_sql.c.
References isKeyword, and KEYWORD_end.
Referenced by findCmdTerm().
Definition at line 434 of file geany_sql.c.
References Assert, sTagEntryInfo::extensionFields, sTagEntryInfo::filePosition, tokenInfo::filePosition, initTagEntry(), sTagEntryInfo::lineNumber, tokenInfo::lineNumber, makeTagEntry(), name, tokenInfo::scope, tokenInfo::scopeKind, sTagEntryInfo::scopeKindIndex, sTagEntryInfo::scopeName, SqlKinds, SQLTAG_COUNT, tokenInfo::string, vStringLength, and vStringValue.
Referenced by parseDeclare(), parseDeclareANSI(), parseDomain(), parseEvent(), parseIndex(), parseLabel(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parsePublication(), parseRecord(), parseService(), parseSimple(), parseSubProgram(), parseSynonym(), parseTable(), parseTrigger(), parseType(), parseVariable(), and parseView().
|
static |
Definition at line 397 of file geany_sql.c.
References tokenInfo::filePosition, getInputFilePosition(), getInputLineNumber(), tokenInfo::keyword, KEYWORD_NONE, tokenInfo::lineNumber, tokenInfo::scope, tokenInfo::scopeKind, SQLTAG_COUNT, tokenInfo::string, TOKEN_UNDEFINED, tokenInfo::type, vStringNew(), and xMalloc.
Referenced by findSqlTags(), parseDeclareANSI(), parseDomain(), parseEvent(), parseIndex(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parsePublication(), parseService(), parseSubProgram(), parseSynonym(), parseTable(), parseTrigger(), parseType(), parseVariable(), parseView(), and readIdentifier().
|
static |
Definition at line 1541 of file geany_sql.c.
References isCmdTerm(), isKeyword, isType, KEYWORD_begin, KEYWORD_end, parseDeclare(), parseDeclareANSI(), parseLabel(), parseStatements(), readToken(), and TOKEN_BLOCK_LABEL_BEGIN.
Referenced by parseEvent(), parseKeywords(), parsePackage(), parseStatements(), parseSubProgram(), and parseTrigger().
|
static |
Definition at line 2235 of file geany_sql.c.
References findCmdTerm(), findToken(), isKeyword, isType, KEYWORD_is, readToken(), TOKEN_CLOSE_CURLY, and TOKEN_OPEN_CURLY.
Referenced by parseKeywords().
|
static |
Definition at line 1108 of file geany_sql.c.
References findToken(), isKeyword, isType, tokenInfo::keyword, KEYWORD_begin, KEYWORD_cursor, KEYWORD_declare, KEYWORD_end, KEYWORD_function, KEYWORD_procedure, KEYWORD_subtype, KEYWORD_trigger, KEYWORD_type, makeSqlTag(), parseSimple(), parseSubProgram(), parseType(), readToken(), SQLTAG_CURSOR, SQLTAG_LOCAL_VARIABLE, SQLTAG_SUBTYPE, SQLTAG_TRIGGER, SQLTAG_VARIABLE, TOKEN_IDENTIFIER, and TOKEN_SEMICOLON.
Referenced by parseBlock(), parseSubProgram(), and parseTrigger().
|
static |
Definition at line 1153 of file geany_sql.c.
References deleteToken(), findToken(), isKeyword, isType, KEYWORD_cursor, KEYWORD_declare, KEYWORD_local, KEYWORD_table, KEYWORD_temporary, makeSqlTag(), newToken(), readToken(), SQLTAG_CURSOR, SQLTAG_LOCAL_VARIABLE, SQLTAG_TABLE, SQLTAG_VARIABLE, TOKEN_IDENTIFIER, TOKEN_SEMICOLON, and TOKEN_STRING.
Referenced by parseBlock().
|
static |
Definition at line 1935 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_is, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), SQLTAG_DOMAIN, TOKEN_IDENTIFIER, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 1959 of file geany_sql.c.
References findCmdTerm().
Referenced by parseKeywords().
|
static |
Definition at line 1757 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_begin, KEYWORD_handler, makeSqlTag(), name, newToken(), parseBlock(), readIdentifier(), readToken(), SQLTAG_EVENT, TOKEN_PERIOD, and TOKEN_SEMICOLON.
Referenced by parseKeywords().
|
static |
Definition at line 484 of file geany_sql.c.
References Assert, getcFromInputFile(), isIdentChar(), isIdentChar1(), ungetcToInputFile(), and vStringPut().
Referenced by readToken().
|
static |
Definition at line 1717 of file geany_sql.c.
References addToScope(), deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_on, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), SQLTAG_INDEX, SQLTAG_TABLE, tokenInfo::string, TOKEN_IDENTIFIER, TOKEN_PERIOD, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 2267 of file geany_sql.c.
References tokenInfo::keyword, KEYWORD_begin, KEYWORD_comment, KEYWORD_cursor, KEYWORD_datatype, KEYWORD_declare, KEYWORD_domain, KEYWORD_drop, KEYWORD_event, KEYWORD_function, KEYWORD_if, KEYWORD_index, KEYWORD_ml_conn, KEYWORD_ml_conn_chk, KEYWORD_ml_conn_dnet, KEYWORD_ml_conn_java, KEYWORD_ml_conn_lang, KEYWORD_ml_prop, KEYWORD_ml_table, KEYWORD_ml_table_chk, KEYWORD_ml_table_dnet, KEYWORD_ml_table_java, KEYWORD_ml_table_lang, KEYWORD_package, KEYWORD_procedure, KEYWORD_publication, KEYWORD_service, KEYWORD_subtype, KEYWORD_synonym, KEYWORD_table, KEYWORD_trigger, KEYWORD_type, KEYWORD_variable, KEYWORD_view, parseBlock(), parseComment(), parseDomain(), parseDrop(), parseEvent(), parseIndex(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parsePublication(), parseService(), parseSimple(), parseStatements(), parseSubProgram(), parseSynonym(), parseTable(), parseTrigger(), parseType(), parseVariable(), parseView(), SQLTAG_CURSOR, and SQLTAG_SUBTYPE.
Referenced by parseSqlFile(), and parseStatements().
|
static |
Definition at line 1207 of file geany_sql.c.
References Assert, isType, makeSqlTag(), readToken(), SQLTAG_BLOCK_LABEL, TOKEN_BLOCK_LABEL_BEGIN, and TOKEN_IDENTIFIER.
Referenced by parseBlock(), parseSqlFile(), and parseStatements().
|
static |
Definition at line 2125 of file geany_sql.c.
References addToScope(), deleteToken(), findCmdTerm(), findToken(), isType, makeSqlTag(), newToken(), readToken(), SQLTAG_EVENT, SQLTAG_MLCONN, tokenInfo::string, TOKEN_CLOSE_PAREN, TOKEN_COMMA, TOKEN_OPEN_PAREN, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 2171 of file geany_sql.c.
References addToScope(), deleteToken(), findCmdTerm(), findToken(), isType, makeSqlTag(), newToken(), readToken(), SQLTAG_MLPROP, tokenInfo::string, TOKEN_CLOSE_PAREN, TOKEN_COMMA, TOKEN_OPEN_PAREN, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 2064 of file geany_sql.c.
References addToScope(), deleteToken(), findCmdTerm(), findToken(), isType, makeSqlTag(), newToken(), readToken(), SQLTAG_EVENT, SQLTAG_MLTABLE, SQLTAG_TABLE, tokenInfo::string, TOKEN_CLOSE_PAREN, TOKEN_COMMA, TOKEN_OPEN_PAREN, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 1599 of file geany_sql.c.
References addToScope(), deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_body, KEYWORD_is, makeSqlTag(), name, newToken(), parseBlock(), readIdentifier(), readToken(), tokenInfo::scope, tokenInfo::scopeKind, SQLTAG_COUNT, SQLTAG_PACKAGE, TOKEN_IDENTIFIER, TOKEN_PERIOD, TOKEN_STRING, and vStringClear.
Referenced by parseKeywords().
|
static |
Definition at line 1875 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isType, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), SQLTAG_PUBLICATION, TOKEN_IDENTIFIER, TOKEN_OPEN_PAREN, TOKEN_PERIOD, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 980 of file geany_sql.c.
References Assert, isKeyword, isType, KEYWORD_check, KEYWORD_constraint, KEYWORD_foreign, KEYWORD_primary, KEYWORD_references, KEYWORD_unique, makeSqlTag(), readToken(), skipArgumentList(), SQLTAG_FIELD, TOKEN_CLOSE_PAREN, TOKEN_COMMA, TOKEN_IDENTIFIER, TOKEN_OPEN_PAREN, and TOKEN_STRING.
Referenced by parseTable(), and parseType().
|
static |
Definition at line 1906 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_type, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), SQLTAG_SERVICE, TOKEN_IDENTIFIER, and TOKEN_STRING.
Referenced by parseKeywords().
Definition at line 1099 of file geany_sql.c.
References isType, makeSqlTag(), readToken(), TOKEN_IDENTIFIER, and TOKEN_STRING.
Referenced by parseDeclare(), and parseKeywords().
|
static |
Definition at line 2308 of file geany_sql.c.
References isKeyword, isType, KEYWORD_end, parseKeywords(), parseLabel(), readToken(), and TOKEN_BLOCK_LABEL_BEGIN.
Referenced by findSqlTags().
|
static |
Definition at line 1233 of file geany_sql.c.
References isCmdTerm(), isKeyword, isType, tokenInfo::keyword, KEYWORD_begin, KEYWORD_case, KEYWORD_create, KEYWORD_declare, KEYWORD_do, KEYWORD_else, KEYWORD_elseif, KEYWORD_end, KEYWORD_endif, KEYWORD_exception, KEYWORD_for, KEYWORD_if, KEYWORD_is, KEYWORD_loop, KEYWORD_then, KEYWORD_when, KEYWORD_while, parseBlock(), parseKeywords(), parseLabel(), parseStatements(), readToken(), skipToMatched(), TOKEN_BLOCK_LABEL_BEGIN, TOKEN_COLON, TOKEN_OPEN_CURLY, TOKEN_OPEN_PAREN, and TOKEN_OPEN_SQUARE.
Referenced by parseBlock(), parseKeywords(), and parseStatements().
|
static |
Definition at line 460 of file geany_sql.c.
References getcFromInputFile(), and vStringPut().
Referenced by readToken().
|
static |
Definition at line 798 of file geany_sql.c.
References addToScope(), Assert, copyToken(), deleteToken(), isCmdTerm(), isKeyword, isType, KEYWORD_at, KEYWORD_begin, KEYWORD_declare, KEYWORD_external, KEYWORD_function, KEYWORD_internal, KEYWORD_is, KEYWORD_NONE, KEYWORD_procedure, KEYWORD_result, KEYWORD_return, KEYWORD_returns, KEYWORD_url, makeSqlTag(), name, newToken(), parseBlock(), parseDeclare(), readToken(), tokenInfo::scope, tokenInfo::scopeKind, skipArgumentList(), SQLTAG_COUNT, SQLTAG_FUNCTION, SQLTAG_PROCEDURE, SQLTAG_PROTOTYPE, TOKEN_EQUAL, TOKEN_IDENTIFIER, TOKEN_OPEN_PAREN, TOKEN_PERIOD, TOKEN_STRING, vStringClear, vStringCopy(), vStringDelete(), vStringLength, and vStringNew().
Referenced by parseDeclare(), and parseKeywords().
|
static |
Definition at line 1998 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_for, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), SQLTAG_SYNONYM, TOKEN_IDENTIFIER, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 1643 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_at, makeSqlTag(), name, newToken(), parseRecord(), readIdentifier(), readToken(), tokenInfo::scope, tokenInfo::scopeKind, SQLTAG_COUNT, SQLTAG_TABLE, TOKEN_IDENTIFIER, TOKEN_OPEN_PAREN, TOKEN_PERIOD, TOKEN_STRING, vStringClear, and vStringCopy().
Referenced by parseKeywords().
|
static |
Definition at line 1799 of file geany_sql.c.
References addToScope(), deleteToken(), findCmdTerm(), isCmdTerm(), isKeyword, isType, KEYWORD_begin, KEYWORD_call, KEYWORD_declare, KEYWORD_on, makeSqlTag(), name, newToken(), parseBlock(), parseDeclare(), readIdentifier(), readToken(), tokenInfo::scope, tokenInfo::scopeKind, SQLTAG_COUNT, SQLTAG_TABLE, SQLTAG_TRIGGER, tokenInfo::string, TOKEN_PERIOD, and vStringClear.
Referenced by parseKeywords().
|
static |
Definition at line 1051 of file geany_sql.c.
References addToScope(), deleteToken(), isKeyword, isType, tokenInfo::keyword, KEYWORD_cursor, KEYWORD_is, KEYWORD_object, KEYWORD_record, KEYWORD_ref, KEYWORD_table, makeSqlTag(), name, newToken(), parseRecord(), readToken(), tokenInfo::scope, tokenInfo::scopeKind, SQLTAG_COUNT, SQLTAG_CURSOR, SQLTAG_RECORD, SQLTAG_TABLE, TOKEN_IDENTIFIER, vStringClear, vStringCopy(), vStringDelete(), and vStringNew().
Referenced by parseDeclare(), and parseKeywords().
|
static |
Definition at line 1974 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isType, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), SQLTAG_VARIABLE, TOKEN_IDENTIFIER, TOKEN_SEMICOLON, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 2022 of file geany_sql.c.
References deleteToken(), findCmdTerm(), isKeyword, isType, KEYWORD_is, makeSqlTag(), name, newToken(), readIdentifier(), readToken(), skipArgumentList(), SQLTAG_VIEW, TOKEN_IDENTIFIER, TOKEN_OPEN_PAREN, TOKEN_PERIOD, TOKEN_SEMICOLON, and TOKEN_STRING.
Referenced by parseKeywords().
|
static |
Definition at line 654 of file geany_sql.c.
References deleteToken(), isType, newToken(), readToken(), and TOKEN_OPEN_SQUARE.
Referenced by parseDomain(), parseEvent(), parseIndex(), parsePackage(), parsePublication(), parseService(), parseSynonym(), parseTable(), parseTrigger(), parseVariable(), and parseView().
|
static |
Definition at line 497 of file geany_sql.c.
References analyzeToken(), Exception, ExceptionEOF, tokenInfo::filePosition, getcFromInputFile(), getInputFilePosition(), getInputLineNumber(), isIdentChar1(), isKeyword, tokenInfo::keyword, KEYWORD_NONE, KEYWORD_rem, Lang_sql, tokenInfo::lineNumber, parseIdentifier(), parseString(), skipToCharacterInInputFile(), tokenInfo::string, TOKEN_BLOCK_LABEL_BEGIN, TOKEN_BLOCK_LABEL_END, TOKEN_CHARACTER, TOKEN_CLOSE_CURLY, TOKEN_CLOSE_PAREN, TOKEN_CLOSE_SQUARE, TOKEN_COLON, TOKEN_COMMA, TOKEN_EQUAL, TOKEN_FORWARD_SLASH, TOKEN_IDENTIFIER, TOKEN_KEYWORD, TOKEN_OPEN_CURLY, TOKEN_OPEN_PAREN, TOKEN_OPEN_SQUARE, TOKEN_OPERATOR, TOKEN_PERIOD, TOKEN_SEMICOLON, TOKEN_STRING, TOKEN_TILDE, TOKEN_UNDEFINED, tokenInfo::type, ungetcToInputFile(), and vStringClear.
Referenced by findCmdTerm(), findToken(), parseBlock(), parseComment(), parseDeclare(), parseDeclareANSI(), parseDomain(), parseEvent(), parseIndex(), parseLabel(), parseMLConn(), parseMLProp(), parseMLTable(), parsePackage(), parsePublication(), parseRecord(), parseService(), parseSimple(), parseSqlFile(), parseStatements(), parseSubProgram(), parseSynonym(), parseTable(), parseTrigger(), parseType(), parseVariable(), parseView(), readIdentifier(), and skipToMatched().
|
static |
Definition at line 783 of file geany_sql.c.
References isType, skipToMatched(), and TOKEN_OPEN_PAREN.
Referenced by parseRecord(), parseSubProgram(), and parseView().
|
static |
Definition at line 720 of file geany_sql.c.
References isType, readToken(), TOKEN_CLOSE_CURLY, TOKEN_CLOSE_PAREN, TOKEN_CLOSE_SQUARE, TOKEN_OPEN_CURLY, TOKEN_OPEN_PAREN, TOKEN_OPEN_SQUARE, and tokenInfo::type.
Referenced by parseStatements(), and skipArgumentList().
parserDefinition * SqlParser | ( | void | ) |
Definition at line 2338 of file geany_sql.c.
References ARRAY_SIZE, sParserDefinition::extensions, findSqlTags(), sParserDefinition::initialize, initialize(), sParserDefinition::keywordCount, sParserDefinition::keywordTable, sParserDefinition::kindCount, sParserDefinition::kindTable, NULL, sParserDefinition::parser, parserNew(), SqlKeywordTable, and SqlKinds.
|
static |
Definition at line 174 of file geany_sql.c.
Referenced by findSqlTags(), and readToken().
|
static |
Definition at line 172 of file geany_sql.c.
Referenced by initialize(), and readToken().
|
static |
Definition at line 229 of file geany_sql.c.
Referenced by SqlParser().
|
static |
Definition at line 203 of file geany_sql.c.
Referenced by initialize(), makeSqlTag(), and SqlParser().