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