* @brief Converts a sematinc rule token to integer * * @param str * @return unsigned long long int */
| 4229 | * @return unsigned long long int |
| 4230 | */ |
| 4231 | unsigned long long int |
| 4232 | SemanticRuleToInt(char * str) |
| 4233 | { |
| 4234 | for (int i = 0; i < SEMANTIC_RULES_MAP_LIST_LENGTH; i++) |
| 4235 | { |
| 4236 | if (!strcmp(str, SemanticRulesMapList[i].Name)) |
| 4237 | { |
| 4238 | return SemanticRulesMapList[i].Type; |
| 4239 | } |
| 4240 | } |
| 4241 | return INVALID; |
| 4242 | } |
| 4243 | |
| 4244 | /** |
| 4245 | * @brief Prints some information about the error |