JavaCC.h
Go to the documentation of this file.
1 /* Generated By:JavaCC: Do not edit this line. JavaCC.h Version 6.2 */
2 /* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
3 #ifndef JAVACC_H_
4 #define JAVACC_H_
5 #include <stdio.h>
6 #include <string>
7 #include <memory.h>
8 #include <assert.h>
9 #include "vhdlstring.h"
10 
11 #ifndef JAVACC_CHAR_TYPE
12 #define JAVACC_CHAR_TYPE char
13 #endif
14 
15 #ifndef JAVACC_STRING_TYPE
16 #define JAVACC_STRING_TYPE VhdlString
17 #endif
18 
19 #define JAVACC_SIMPLE_STRING VhdlString
20 
23 
24 // Abstraction on stream classes to read a block of data into a buffer.
25 class ReaderStream {
26 public:
27  // Read block of data into a buffer and return the actual number read.
28  virtual size_t read(JAVACC_CHAR_TYPE * /*bufptr*/, int /*offset*/, size_t /*len*/) { return 0; }
29  virtual bool endOfInput() { return true; }
30  virtual ~ReaderStream() {}
31 };
32 
33 const JAVACC_CHAR_TYPE EMPTY[] = { 0 };
34 
35 #ifndef MAX
36 #define MAX(a,b) ((a)>(b)?(a):(b))
37 #endif
38 #ifndef MIN
39 #define MIN(a,b) ((a)<(b)?(a):(b))
40 #endif
41 
42 #endif
43 /* JavaCC - OriginalChecksum=eb066370c81bb58bb68713327da9719f (do not edit this line) */
#define JAVACC_STRING_TYPE
Definition: JavaCC.h:16
virtual ~ReaderStream()
Definition: JavaCC.h:30
#define JAVACC_CHAR_TYPE
Definition: JavaCC.h:12
const JAVACC_CHAR_TYPE EMPTY[]
Definition: JavaCC.h:33
JAVACC_STRING_TYPE String
Definition: JavaCC.h:22
virtual size_t read(JAVACC_CHAR_TYPE *, int, size_t)
Definition: JavaCC.h:28
virtual bool endOfInput()
Definition: JavaCC.h:29
JAVACC_STRING_TYPE StringBuffer
Definition: JavaCC.h:21