| 197 | } |
| 198 | |
| 199 | CodeParser::reductionInfo CodeParser::getReductionInfo(int productionNum) { |
| 200 | switch (productionNum) { |
| 201 | case 1: |
| 202 | return reductionInfo(Token::Kind::STM, 5); |
| 203 | case 2: |
| 204 | return reductionInfo(Token::Kind::STM, 9); |
| 205 | case 3: |
| 206 | return reductionInfo(Token::Kind::STM, 5); |
| 207 | case 4: |
| 208 | return reductionInfo(Token::Kind::SEQ, 1); |
| 209 | case 5: |
| 210 | return reductionInfo(Token::Kind::SEQ, 2); |
| 211 | } |
| 212 | assert(0); |
| 213 | } |
| 214 | |
| 215 | CodeParser::parsingTableEntry CodeParser::lookupParsingTable(int cntState, Token::Kind tokenKind, std::pair<int, int> pos) { |
| 216 | switch (cntState) { |