[project @ 1998-12-02 13:17:09 by simonm]
[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
33 #ifdef TRUE
34 #undef TRUE
35 #endif
36
37 #ifdef FALSE
38 #undef FALSE
39 #endif
40
41 #define TRUE    1
42 #define FALSE   0
43 typedef int BOOLEAN;
44
45 #endif /* __CONSTANTS_H */