| 1 | /* |
| 2 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 | * |
| 6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _SQL_PARSER_H_ |
| 10 | #define _SQL_PARSER_H_ |
| 11 | |
| 12 | #include "sql_tokens.h" |
| 13 | #include "sql_mvc.h" |
| 14 | |
| 15 | /* the next define makes the parser output more specific error messages, |
| 16 | * instead of only a dull 'parse error' */ |
| 17 | #define YYERROR_VERBOSE 1 |
| 18 | /* enable this to get an idea of what the parser is doing on stdout |
| 19 | #define YYDEBUG 1 |
| 20 | */ |
| 21 | |
| 22 | extern int find_subgeometry_type(char*); |
| 23 | extern char *token2string(tokens token); |
| 24 | extern int sqlparse(mvc *m); |
| 25 | extern int sqlerror(mvc *sql, const char *s); |
| 26 | |
| 27 | #include "mal_errors.h" /* for SQLSTATE() */ |
| 28 | |
| 29 | #endif /*_SQL_PARSER_H_*/ |
| 30 | |
| 31 | |