summaryrefslogtreecommitdiff
path: root/ghc/compiler/yaccParser/constants.h
blob: 9e168c7540974ccfe5b2f962dc693bef06ced640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
  Include File for the Lexical Analyser and Parser.

  19/11/91	kh	Created.
*/


#ifndef __CONSTANTS_H
#define __CONSTANTS_H

/*
  Important Literal Constants.
*/

#define MODNAME_SIZE		512		/* Size of Module Name buffers 	*/
#define FILENAME_SIZE		4096		/* Size of File buffers 	*/
#define ERR_BUF_SIZE	  	512		/* Size of error buffers 	*/

#ifdef YYLMAX					/* Get rid of YYLMAX 		*/
#undef YYLMAX					/* Ugly -- but necessary 	*/
#endif

#define	YYLMAX			8192		/* Size of yytext -- limits strings, identifiers etc. */


#define HASH_TABLE_SIZE		993		/* Default number of entries in the hash table. */


#define MAX_CONTEXTS 		100   		/* Maximum nesting of wheres, cases etc */
#define MAX_INFIX 		500		/* Maximum number of infix operators */
#define MAX_ISTR 		(MAX_INFIX*10)	/* Total size of all infix operatrors */ 
#define INFIX_SCOPES 		3		/* The number of infix scopes
						   -- Predefs, Module, Imports */


#define MAX_ESC_CHAR 		255		/* Largest Recognised Character: \255 */
#define MAX_ESC_DIGITS 		10		/* Maximum number of digits in an escape \dd */


#ifdef TRUE
#undef TRUE
#endif

#ifdef FALSE
#undef FALSE
#endif

#define TRUE	1
#define FALSE	0
typedef int BOOLEAN;

#endif /* __CONSTANTS_H */