MCPcopy Create free account
hub / github.com/Gusabary/FlowChar / getReductionInfo

Method getReductionInfo

src/codeParser.cpp:199–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199CodeParser::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
215CodeParser::parsingTableEntry CodeParser::lookupParsingTable(int cntState, Token::Kind tokenKind, std::pair<int, int> pos) {
216 switch (cntState) {

Callers 1

parseMethod · 0.95

Calls 1

reductionInfoClass · 0.85

Tested by

no test coverage detected