1996-11-08 15:46:33 -05:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* gramparse.h
|
2000-09-12 17:07:18 -04:00
|
|
|
* Declarations for routines exported from lexer and parser files.
|
|
|
|
|
*
|
1996-11-08 15:46:33 -05:00
|
|
|
*
|
2001-01-24 14:43:33 -05:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-11-08 15:46:33 -05:00
|
|
|
*
|
2002-04-20 17:56:15 -04:00
|
|
|
* $Id: gramparse.h,v 1.21 2002/04/20 21:56:15 petere Exp $
|
1996-11-08 15:46:33 -05:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef GRAMPARSE_H
|
2000-09-12 17:07:18 -04:00
|
|
|
#define GRAMPARSE_H
|
1996-11-08 15:46:33 -05:00
|
|
|
|
2002-04-20 17:56:15 -04:00
|
|
|
#include "lib/stringinfo.h"
|
|
|
|
|
|
2000-09-12 17:07:18 -04:00
|
|
|
/* from parser.c */
|
2000-01-20 00:26:54 -05:00
|
|
|
extern int yylex(void);
|
2000-09-12 17:07:18 -04:00
|
|
|
|
|
|
|
|
/* from scan.l */
|
2002-04-20 17:56:15 -04:00
|
|
|
extern void scanner_init(StringInfo str);
|
|
|
|
|
extern void scanner_finish(void);
|
2000-09-12 17:07:18 -04:00
|
|
|
extern int base_yylex(void);
|
2000-04-12 13:17:23 -04:00
|
|
|
extern void yyerror(const char *message);
|
1996-11-08 15:46:33 -05:00
|
|
|
|
|
|
|
|
/* from gram.y */
|
1997-09-08 17:56:23 -04:00
|
|
|
extern void parser_init(Oid *typev, int nargs);
|
2000-09-12 17:07:18 -04:00
|
|
|
extern Oid param_type(int t);
|
1997-09-07 22:41:22 -04:00
|
|
|
extern int yyparse(void);
|
2001-02-08 22:26:28 -05:00
|
|
|
extern char *xlateSqlFunc(char *name);
|
|
|
|
|
extern char *xlateSqlType(char *name);
|
2002-04-09 16:35:55 -04:00
|
|
|
extern List *SystemFuncName(char *name);
|
2001-10-25 01:50:21 -04:00
|
|
|
bool exprIsNullConstant(Node *arg);
|
2001-10-28 01:26:15 -05:00
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* GRAMPARSE_H */
|