VhdlParserTokenManager.h
Go to the documentation of this file.
1 #ifndef VHDLPARSERTOKENMANAGER_H
2 #define VHDLPARSERTOKENMANAGER_H
3 #include "stdio.h"
4 #include "JavaCC.h"
5 #include "CharStream.h"
6 #include "Token.h"
7 #include "ErrorHandler.h"
8 #include "TokenManager.h"
9 #include "VhdlParserConstants.h"
10 #include "VhdlParser.h"
11 
12 namespace vhdl {
13 namespace parser {
14 class VhdlParser;
15 
16 /** Token Manager. */
18  public:
19 
20  /** Debug output. */
21  FILE *debugStream;
22  /** Set debug output. */
23 
24 void setDebugStream(FILE *ds);
25 
26  int jjStopAtPos(int pos, int kind);
27 
29 
30  int jjMoveStringLiteralDfa1_0(unsigned long long active0, unsigned long long active1, unsigned long long active2);
31 
32  int jjMoveStringLiteralDfa2_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1, unsigned long long old2, unsigned long long active2);
33 
34  int jjMoveStringLiteralDfa3_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1, unsigned long long old2, unsigned long long active2);
35 
36  int jjMoveStringLiteralDfa4_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
37 
38  int jjMoveStringLiteralDfa5_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
39 
40  int jjMoveStringLiteralDfa6_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
41 
42  int jjMoveStringLiteralDfa7_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
43 
44  int jjMoveStringLiteralDfa8_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
45 
46  int jjMoveStringLiteralDfa9_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
47 
48  int jjMoveStringLiteralDfa10_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
49 
50  int jjMoveStringLiteralDfa11_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
51 
52  int jjMoveStringLiteralDfa12_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
53 
54  int jjMoveStringLiteralDfa13_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
55 
56  int jjMoveStringLiteralDfa14_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
57 
58  int jjMoveStringLiteralDfa15_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
59 
60  int jjMoveStringLiteralDfa16_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1);
61 
62  int jjMoveStringLiteralDfa17_0(unsigned long long old1, unsigned long long active1);
63 
64 int jjMoveNfa_0(int startState, int curPos);
65 
66 bool jjCanMove_0(int hiByte, int i1, int i2, unsigned long long l1, unsigned long long l2);
67 
68 bool jjCanMove_1(int hiByte, int i1, int i2, unsigned long long l1, unsigned long long l2);
69 
70 Token * jjFillToken();
71 
72 public: int curLexState;
73 public: int jjnewStateCnt;
74 public: int jjround;
75 public: int jjmatchedPos;
76 public: int jjmatchedKind;
77 
78 
80 
81 void SkipLexicalActions(Token *matchedToken);
82 
83 void TokenLexicalActions(Token *matchedToken);
84 #define jjCheckNAdd(state)\
85 {\
86  if (jjrounds[state] != jjround)\
87  {\
88  jjstateSet[jjnewStateCnt++] = state;\
89  jjrounds[state] = jjround;\
90  }\
91 }
92 #define jjAddStates(start, end)\
93 {\
94  for (int x = start; x <= end; x++) {\
95  jjstateSet[jjnewStateCnt++] = jjnextStates[x];\
96  } /*while (start++ != end);*/\
97 }
98 #define jjCheckNAddTwoStates(state1, state2)\
99 {\
100  jjCheckNAdd(state1);\
101  jjCheckNAdd(state2);\
102 }
103 
104 #define jjCheckNAddStates(start, end)\
105 {\
106  for (int x = start; x <= end; x++) {\
107  jjCheckNAdd(jjnextStates[x]);\
108  } /*while (start++ != end);*/\
109 }
110 
111 #ifndef JAVACC_CHARSTREAM
112 #define JAVACC_CHARSTREAM CharStream
113 #endif
114  private: VhdlParser*parser;
115  private: void ReInitRounds();
116  public: VhdlParserTokenManager(JAVACC_CHARSTREAM *stream, int lexState = 0, VhdlParser *parserArg = NULL);
117  public: virtual ~VhdlParserTokenManager();
118  void ReInit(JAVACC_CHARSTREAM *stream, int lexState = 0, VhdlParser *parserArg = NULL);
119  void SwitchTo(int lexState);
120  void clear();
121  const JAVACC_SIMPLE_STRING jjKindsForBitVector(int i, unsigned long long vec);
122  const JAVACC_SIMPLE_STRING jjKindsForStateVector(int lexState, int vec[], int start, int end);
123  JAVACC_CHARSTREAM* input_stream;
124  int jjrounds[76];
125  int jjstateSet[2 * 76];
133 
134 public:
136  if (errorHandlerCreated && errorHandler != NULL) delete errorHandler;
137  errorHandler = eh;
138  errorHandlerCreated = false;
139  }
140 
141 };
142 }
143 }
144 #endif
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
int jjMoveStringLiteralDfa1_0(unsigned long long active0, unsigned long long active1, unsigned long long active2)
int jjMoveStringLiteralDfa10_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa8_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa6_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
#define JAVACC_STRING_TYPE
Definition: JavaCC.h:16
bool jjCanMove_1(int hiByte, int i1, int i2, unsigned long long l1, unsigned long long l2)
int jjMoveStringLiteralDfa11_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa17_0(unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa14_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa5_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa9_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
const JAVACC_SIMPLE_STRING jjKindsForBitVector(int i, unsigned long long vec)
void ReInit(JAVACC_CHARSTREAM *stream, int lexState=0, VhdlParser *parserArg=NULL)
#define JAVACC_CHAR_TYPE
Definition: JavaCC.h:12
void setErrorHandler(TokenManagerErrorHandler *eh)
int jjMoveStringLiteralDfa4_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
#define JAVACC_SIMPLE_STRING
Definition: JavaCC.h:19
int jjMoveStringLiteralDfa16_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa7_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveNfa_0(int startState, int curPos)
int jjMoveStringLiteralDfa13_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
const JAVACC_SIMPLE_STRING jjKindsForStateVector(int lexState, int vec[], int start, int end)
bool jjCanMove_0(int hiByte, int i1, int i2, unsigned long long l1, unsigned long long l2)
int jjMoveStringLiteralDfa2_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1, unsigned long long old2, unsigned long long active2)
int jjMoveStringLiteralDfa3_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1, unsigned long long old2, unsigned long long active2)
VhdlParserTokenManager(JAVACC_CHARSTREAM *stream, int lexState=0, VhdlParser *parserArg=NULL)
int jjMoveStringLiteralDfa12_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)
int jjMoveStringLiteralDfa15_0(unsigned long long old0, unsigned long long active0, unsigned long long old1, unsigned long long active1)