[project @ 1996-03-19 08:58:34 by partain]
[ghc-hetmet.git] / ghc / compiler / parser / constants.h
1 /*
2   Include File for the Lexical Analyser and Parser.
3
4   19/11/91      kh      Created.
5 */
6
7
8 #ifndef __CONSTANTS_H
9 #define __CONSTANTS_H
10
11 /*
12   Important Literal Constants.
13 */
14
15 #define MODNAME_SIZE            512             /* Size of Module Name buffers  */
16 #define FILENAME_SIZE           4096            /* Size of File buffers         */
17 #define ERR_BUF_SIZE            512             /* Size of error buffers        */
18
19 #ifdef YYLMAX                                   /* Get rid of YYLMAX            */
20 #undef YYLMAX                                   /* Ugly -- but necessary        */
21 #endif
22
23 #define YYLMAX                  8192            /* Size of yytext -- limits strings, identifiers etc. */
24
25
26 #define HASH_TABLE_SIZE         993             /* Default number of entries in the hash table. */
27
28 #define MAX_CONTEXTS            100             /* Maximum nesting of wheres, cases etc */
29
30 #define MAX_INFIX               500             /* Maximum number of infix operators */
31
32 #define MAX_ESC_CHAR            255             /* Largest Recognised Character: \255 */
33 #define MAX_ESC_DIGITS          10              /* Maximum number of digits in an escape \dd */
34
35
36 #ifdef TRUE
37 #undef TRUE
38 #endif
39
40 #ifdef FALSE
41 #undef FALSE
42 #endif
43
44 #define TRUE    1
45 #define FALSE   0
46 typedef int BOOLEAN;
47
48 #endif /* __CONSTANTS_H */