diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-27 19:04:45 (GMT) |
---|---|---|
committer | Adrian Negreanu <adrian.m.negreanu@intel.com> | 2015-05-15 16:06:04 (GMT) |
commit | 3eed7a5c5b330736b508c722c9614c774a678ef1 (patch) | |
tree | bd732e7e13c05f9089315b83c0790fa4b7e44737 /vhdlparser/VhdlParserTokenManager.cc | |
parent | 2c679e7d39144dadef2e9fd25772f0e41586e18b (diff) | |
download | Doxygen-3eed7a5c5b330736b508c722c9614c774a678ef1.zip Doxygen-3eed7a5c5b330736b508c722c9614c774a678ef1.tar.gz Doxygen-3eed7a5c5b330736b508c722c9614c774a678ef1.tar.bz2 |
Various VHDL related fixes
Diffstat (limited to 'vhdlparser/VhdlParserTokenManager.cc')
-rw-r--r-- | vhdlparser/VhdlParserTokenManager.cc | 272 |
1 files changed, 141 insertions, 131 deletions
diff --git a/vhdlparser/VhdlParserTokenManager.cc b/vhdlparser/VhdlParserTokenManager.cc index ca09e99..07364a4 100644 --- a/vhdlparser/VhdlParserTokenManager.cc +++ b/vhdlparser/VhdlParserTokenManager.cc @@ -13,10 +13,10 @@ static const unsigned long long jjbitVec3[] = { 0x0ULL, 0x0ULL, 0xffffffff00000000ULL, 0xffffffffffffffffULL }; static const int jjnextStates[] = { - 53, 54, 55, 56, 57, 60, 64, 65, 66, 47, 48, 2, 36, 37, 0, 3, - 4, 5, 7, 12, 13, 15, 16, 32, 33, 35, 38, 39, 41, 55, 56, 57, - 60, 59, 58, 60, 64, 65, 66, 67, 68, 70, 9, 10, 23, 24, 27, 28, - 44, 46, 49, 51, 26, 29, + 54, 55, 56, 57, 58, 61, 65, 66, 67, 48, 49, 2, 37, 38, 0, 3, + 4, 5, 7, 12, 13, 15, 16, 24, 23, 25, 33, 34, 36, 39, 40, 42, + 56, 57, 58, 61, 60, 59, 61, 65, 66, 67, 68, 69, 71, 9, 10, 28, + 29, 45, 47, 50, 52, 27, 30, }; static JAVACC_CHAR_TYPE jjstrLiteralChars_0[] = {0}; static JAVACC_CHAR_TYPE jjstrLiteralChars_1[] = {0}; @@ -2683,7 +2683,7 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ curChar = input_stream->readChar(); curPos = 0; int startsAt = 0; - jjnewStateCnt = 75; + jjnewStateCnt = 76; int i = 1; jjstateSet[0] = startState; int kind = 0x7fffffff; @@ -2814,216 +2814,216 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ break; case 22: if (curChar == 34) - { jjCheckNAddTwoStates(23, 24); } + { jjCheckNAdd(23); } break; case 23: if ((0x3ff000000000000ULL & l) != 0L) - { jjCheckNAddTwoStates(23, 24); } + { jjCheckNAddStates(23, 25); } break; - case 24: + case 25: if (curChar == 34 && kind > 179) kind = 179; break; - case 26: + case 27: if (curChar == 34) - { jjCheckNAddTwoStates(27, 28); } + { jjCheckNAddTwoStates(28, 29); } break; - case 27: + case 28: if ((0xfffffffb00000200ULL & l) != 0L) - { jjCheckNAddTwoStates(27, 28); } + { jjCheckNAddTwoStates(28, 29); } break; - case 28: + case 29: if (curChar != 34) break; if (kind > 187) kind = 187; - { jjCheckNAddTwoStates(26, 29); } + { jjCheckNAddTwoStates(27, 30); } break; - case 29: + case 30: if ((0xfffffffb00000200ULL & l) == 0L) break; if (kind > 187) kind = 187; - { jjCheckNAddTwoStates(26, 29); } + { jjCheckNAddTwoStates(27, 30); } break; - case 30: + case 31: if (curChar == 45) { jjCheckNAddStates(11, 13); } break; - case 31: + case 32: if (curChar != 35) break; if (kind > 7) kind = 7; - { jjCheckNAddStates(23, 25); } + { jjCheckNAddStates(26, 28); } break; - case 32: + case 33: if ((0xffffffffffffdbffULL & l) == 0L) break; if (kind > 7) kind = 7; - { jjCheckNAddStates(23, 25); } + { jjCheckNAddStates(26, 28); } break; - case 33: + case 34: if ((0x2400ULL & l) != 0L && kind > 7) kind = 7; break; - case 34: + case 35: if (curChar == 10 && kind > 7) kind = 7; break; - case 35: + case 36: if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 34; + jjstateSet[jjnewStateCnt++] = 35; break; - case 36: + case 37: if (curChar == 45) - jjstateSet[jjnewStateCnt++] = 31; + jjstateSet[jjnewStateCnt++] = 32; break; - case 37: + case 38: if (curChar != 45) break; if (kind > 8) kind = 8; - { jjCheckNAddStates(26, 28); } + { jjCheckNAddStates(29, 31); } break; - case 38: + case 39: if ((0xffffffffffffdbffULL & l) == 0L) break; if (kind > 8) kind = 8; - { jjCheckNAddStates(26, 28); } + { jjCheckNAddStates(29, 31); } break; - case 39: + case 40: if ((0x2400ULL & l) != 0L && kind > 8) kind = 8; break; - case 40: + case 41: if (curChar == 10 && kind > 8) kind = 8; break; - case 41: + case 42: if (curChar == 13) - jjstateSet[jjnewStateCnt++] = 40; + jjstateSet[jjnewStateCnt++] = 41; break; - case 42: + case 43: if (curChar == 47) { jjAddStates(9, 10); } break; - case 43: - if (curChar == 33) - { jjCheckNAddTwoStates(44, 46); } - break; case 44: - { jjCheckNAddTwoStates(44, 46); } + if (curChar == 33) + { jjCheckNAddTwoStates(45, 47); } break; case 45: - if (curChar == 47 && kind > 9) - kind = 9; + { jjCheckNAddTwoStates(45, 47); } break; case 46: - if (curChar == 42) - jjstateSet[jjnewStateCnt++] = 45; + if (curChar == 47 && kind > 9) + kind = 9; break; case 47: if (curChar == 42) - jjstateSet[jjnewStateCnt++] = 43; + jjstateSet[jjnewStateCnt++] = 46; break; case 48: if (curChar == 42) - { jjCheckNAddTwoStates(49, 51); } + jjstateSet[jjnewStateCnt++] = 44; break; case 49: - { jjCheckNAddTwoStates(49, 51); } + if (curChar == 42) + { jjCheckNAddTwoStates(50, 52); } break; case 50: + { jjCheckNAddTwoStates(50, 52); } + break; + case 51: if (curChar == 47 && kind > 10) kind = 10; break; - case 51: + case 52: if (curChar == 42) - jjstateSet[jjnewStateCnt++] = 50; + jjstateSet[jjnewStateCnt++] = 51; break; - case 52: + case 53: if ((0x3ff000000000000ULL & l) == 0L) break; if (kind > 165) kind = 165; { jjCheckNAddStates(0, 8); } break; - case 54: + case 55: if ((0x3ff000000000000ULL & l) == 0L) break; if (kind > 165) kind = 165; - { jjCheckNAddTwoStates(53, 54); } + { jjCheckNAddTwoStates(54, 55); } break; - case 56: + case 57: if ((0x3ff000000000000ULL & l) == 0L) break; if (kind > 170) kind = 170; - { jjCheckNAddStates(29, 32); } + { jjCheckNAddStates(32, 35); } break; - case 57: + case 58: if (curChar == 46) - { jjCheckNAdd(58); } + { jjCheckNAdd(59); } break; - case 58: + case 59: if ((0x3ff000000000000ULL & l) == 0L) break; if (kind > 170) kind = 170; - { jjCheckNAddStates(33, 35); } + { jjCheckNAddStates(36, 38); } break; - case 61: + case 62: if ((0x280000000000ULL & l) != 0L) - { jjCheckNAdd(62); } + { jjCheckNAdd(63); } break; - case 62: + case 63: if ((0x3ff000000000000ULL & l) == 0L) break; if (kind > 170) kind = 170; - { jjCheckNAddTwoStates(63, 62); } + { jjCheckNAddTwoStates(64, 63); } break; - case 65: + case 66: if ((0x3ff000000000000ULL & l) != 0L) - { jjCheckNAddStates(36, 38); } + { jjCheckNAddStates(39, 41); } break; - case 66: + case 67: if (curChar == 35) - { jjCheckNAdd(67); } + { jjCheckNAdd(68); } break; - case 67: + case 68: if ((0x3ff000000000000ULL & l) != 0L) - { jjCheckNAddStates(39, 41); } + { jjCheckNAddStates(42, 44); } break; - case 68: + case 69: if (curChar == 46) - { jjCheckNAdd(69); } + { jjCheckNAdd(70); } break; - case 69: + case 70: if ((0x3ff000000000000ULL & l) != 0L) - { jjCheckNAddTwoStates(69, 70); } + { jjCheckNAddTwoStates(70, 71); } break; - case 70: + case 71: if (curChar != 35) break; if (kind > 172) kind = 172; - jjstateSet[jjnewStateCnt++] = 71; + jjstateSet[jjnewStateCnt++] = 72; break; - case 72: + case 73: if ((0x280000000000ULL & l) != 0L) - { jjCheckNAdd(73); } + { jjCheckNAdd(74); } break; - case 73: + case 74: if ((0x3ff000000000000ULL & l) == 0L) break; if (kind > 172) kind = 172; - { jjCheckNAddTwoStates(74, 73); } + { jjCheckNAddTwoStates(75, 74); } break; default : break; } @@ -3045,7 +3045,7 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ { jjCheckNAdd(20); } } else if (curChar == 96) - { jjCheckNAddTwoStates(26, 29); } + { jjCheckNAddTwoStates(27, 30); } else if (curChar == 92) { jjCheckNAddTwoStates(15, 16); } if ((0x7fffffe07fffffeULL & l) != 0L) @@ -3064,7 +3064,7 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ break; case 9: if ((0x7fffffffffffffffULL & l) != 0L) - { jjAddStates(42, 43); } + { jjAddStates(45, 46); } break; case 12: if (curChar == 95) @@ -3106,78 +3106,82 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ break; case 23: if ((0x7fffffe07fffffeULL & l) != 0L) - { jjAddStates(44, 45); } + { jjCheckNAddStates(23, 25); } break; - case 25: + case 24: + if (curChar == 95) + { jjCheckNAddTwoStates(24, 23); } + break; + case 26: if (curChar == 96) - { jjCheckNAddTwoStates(26, 29); } + { jjCheckNAddTwoStates(27, 30); } break; - case 27: + case 28: if ((0x7fffffffffffffffULL & l) != 0L) - { jjAddStates(46, 47); } + { jjAddStates(47, 48); } break; - case 29: + case 30: if ((0x7fffffffffffffffULL & l) == 0L) break; if (kind > 187) kind = 187; - { jjCheckNAddTwoStates(26, 29); } + { jjCheckNAddTwoStates(27, 30); } break; - case 32: + case 33: if (kind > 7) kind = 7; - { jjAddStates(23, 25); } + { jjAddStates(26, 28); } break; - case 38: + case 39: if (kind > 8) kind = 8; - { jjAddStates(26, 28); } + { jjAddStates(29, 31); } break; - case 44: - { jjAddStates(48, 49); } + case 45: + { jjAddStates(49, 50); } break; - case 49: - { jjAddStates(50, 51); } + case 50: + { jjAddStates(51, 52); } break; - case 53: + case 54: if (curChar == 95) - jjstateSet[jjnewStateCnt++] = 54; + jjstateSet[jjnewStateCnt++] = 55; break; - case 55: + case 56: if (curChar == 95) - jjstateSet[jjnewStateCnt++] = 56; + jjstateSet[jjnewStateCnt++] = 57; break; - case 59: + case 60: if (curChar == 95) - jjstateSet[jjnewStateCnt++] = 58; + jjstateSet[jjnewStateCnt++] = 59; break; - case 60: + case 61: if ((0x2000000020ULL & l) != 0L) - { jjCheckNAddTwoStates(61, 62); } + { jjCheckNAddTwoStates(62, 63); } break; - case 63: + case 64: if (curChar == 95) - { jjCheckNAdd(62); } + { jjCheckNAdd(63); } break; - case 64: + case 65: if (curChar == 95) - jjstateSet[jjnewStateCnt++] = 65; + jjstateSet[jjnewStateCnt++] = 66; break; - case 67: + case 68: if ((0x7fffffe07fffffeULL & l) != 0L) - { jjCheckNAddStates(39, 41); } + { jjCheckNAddStates(42, 44); } break; - case 69: + case 70: if ((0x7fffffe07fffffeULL & l) != 0L) - { jjCheckNAddTwoStates(69, 70); } + { jjCheckNAddTwoStates(70, 71); } break; - case 71: + case 72: if ((0x2000000020ULL & l) != 0L) - { jjCheckNAddTwoStates(72, 73); } + { jjCheckNAddTwoStates(73, 74); } break; - case 74: + case 75: if (curChar == 95) - { jjCheckNAdd(73); } + { jjCheckNAdd(74); } break; default : break; } @@ -3203,7 +3207,7 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ break; case 9: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) - { jjAddStates(42, 43); } + { jjAddStates(45, 46); } break; case 15: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) @@ -3213,38 +3217,38 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjstateSet[jjnewStateCnt++] = 19; break; - case 27: + case 28: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) - { jjAddStates(46, 47); } + { jjAddStates(47, 48); } break; - case 29: + case 30: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 187) kind = 187; - { jjAddStates(52, 53); } + { jjAddStates(53, 54); } break; - case 32: + case 33: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; - { jjAddStates(23, 25); } + { jjAddStates(26, 28); } break; - case 38: + case 39: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 8) kind = 8; - { jjAddStates(26, 28); } + { jjAddStates(29, 31); } break; - case 44: + case 45: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) - { jjAddStates(48, 49); } + { jjAddStates(49, 50); } break; - case 49: + case 50: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) - { jjAddStates(50, 51); } + { jjAddStates(51, 52); } break; default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0) break; else break; } @@ -3257,7 +3261,7 @@ int VhdlParserTokenManager::jjMoveNfa_0(int startState, int curPos){ kind = 0x7fffffff; } ++curPos; - if ((i = jjnewStateCnt), (jjnewStateCnt = startsAt), (i == (startsAt = 75 - startsAt))) + if ((i = jjnewStateCnt), (jjnewStateCnt = startsAt), (i == (startsAt = 76 - startsAt))) break; if (input_stream->endOfInput()) { break; } curChar = input_stream->readChar(); @@ -3570,6 +3574,12 @@ void VhdlParserTokenManager::TokenLexicalActions(Token *matchedToken){ ::vhdl::parser::VhdlParser::setLineParsed(UNITS_T); break; } + case 137 : { + image.append(jjstrLiteralImages[137]); + lengthOfMatch = jjstrLiteralImages[137].length(); + ::vhdl::parser::VhdlParser::setLineParsed(SEMI_T); + break; + } default : break; } @@ -3591,7 +3601,7 @@ void VhdlParserTokenManager::TokenLexicalActions(Token *matchedToken){ void VhdlParserTokenManager::ReInitRounds() { int i; jjround = 0x80000001; - for (i = 75; i-- > 0;) + for (i = 76; i-- > 0;) jjrounds[i] = 0x80000000; } |