[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / yaccParser / 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
29 #define MAX_CONTEXTS            100             /* Maximum nesting of wheres, cases etc */
30 #define MAX_INFIX               500             /* Maximum number of infix operators */
31 #define MAX_ISTR                (MAX_INFIX*10)  /* Total size of all infix operatrors */ 
32 #define INFIX_SCOPES            3               /* The number of infix scopes
33                                                    -- Predefs, Module, Imports */
34
35
36 #define MAX_ESC_CHAR            255             /* Largest Recognised Character: \255 */
37 #define MAX_ESC_DIGITS          10              /* Maximum number of digits in an escape \dd */
38
39
40 #ifdef TRUE
41 #undef TRUE
42 #endif
43
44 #ifdef FALSE
45 #undef FALSE
46 #endif
47
48 #define TRUE    1
49 #define FALSE   0
50 typedef int BOOLEAN;
51
52 #endif /* __CONSTANTS_H */