gramparse.h 893 Bytes
Newer Older
Bruce Momjian's avatar
Bruce Momjian committed
1 2
/*-------------------------------------------------------------------------
 *
3
 * gramparse.h
4 5
 *	  Declarations for routines exported from lexer and parser files.
 *
Bruce Momjian's avatar
Bruce Momjian committed
6
 *
7
 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
Bruce Momjian's avatar
Add:  
Bruce Momjian committed
8
 * Portions Copyright (c) 1994, Regents of the University of California
Bruce Momjian's avatar
Bruce Momjian committed
9
 *
10
 * $Id: gramparse.h,v 1.15 2001/02/09 03:26:27 tgl Exp $
Bruce Momjian's avatar
Bruce Momjian committed
11 12 13 14 15
 *
 *-------------------------------------------------------------------------
 */

#ifndef GRAMPARSE_H
16
#define GRAMPARSE_H
Bruce Momjian's avatar
Bruce Momjian committed
17

18
/* from parser.c */
19
extern int	yylex(void);
20 21 22 23

/* from scan.l */
extern void scanner_init(void);
extern int	base_yylex(void);
24
extern void yyerror(const char *message);
Bruce Momjian's avatar
Bruce Momjian committed
25 26

/* from gram.y */
27
extern void parser_init(Oid *typev, int nargs);
28
extern Oid	param_type(int t);
29
extern int	yyparse(void);
30 31
extern char *xlateSqlFunc(char *name);
extern char *xlateSqlType(char *name);
Bruce Momjian's avatar
Bruce Momjian committed
32

33
#endif	 /* GRAMPARSE_H */