Imported Upstream version 1.8.8
[platform/upstream/doxygen.git] / vhdlparser / JavaCC.h.in
1 /* Generated By:JavaCC: Do not edit this line. JavaCC.h Version 6.0 */
2 /* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
3 #ifndef __JAVACC_H
4 #define __JAVACC_H
5 #include <stdio.h>
6 #include <string.h>
7 #include <memory.h>
8 #include <assert.h>
9 #include <cstring>
10
11 #include "vhdlstring.h"
12
13 #ifndef JAVACC_CHAR_TYPE
14 #define JAVACC_CHAR_TYPE char
15 #endif
16
17 #ifndef JAVACC_STRING_TYPE
18 #define JAVACC_STRING_TYPE VhdlString
19 #endif
20
21 #define finally  // TODO(Sreeni): Get rid of when we fix jjtree
22
23 #define JAVACC_SIMPLE_STRING VhdlString
24
25 JAVACC_SIMPLE_STRING addUnicodeEscapes(JAVACC_STRING_TYPE str);
26
27
28 typedef JAVACC_STRING_TYPE StringBuffer;
29 typedef JAVACC_STRING_TYPE String;
30
31 // Abstraction on stream classes to read a block of data into a buffer.
32 class ReaderStream {
33  public:
34   // Read block of data into a buffer and return the actual number read.
35   virtual size_t read(JAVACC_CHAR_TYPE *, int, size_t) {
36     return 0;
37   }
38   virtual bool endOfInput() { return true; }
39   virtual ~ReaderStream() {}
40 };
41
42 const JAVACC_CHAR_TYPE EMPTY[] = { 0 };
43
44 #ifndef MAX
45 #define MAX(a,b) ((a)>(b)?(a):(b))
46 #endif
47 #ifndef MIN
48 #define MIN(a,b) ((a)<(b)?(a):(b))
49 #endif
50
51 #endif
52 /* JavaCC - OriginalChecksum=775c677272b259e2a33aac80851ba9f1 (do not edit this line) */