| 159 | }; |
| 160 | |
| 161 | inline void parse_typestring(std::string typestring) { |
| 162 | std::regex re("'([<>|])([ifuc])(\\d+)'"); |
| 163 | std::smatch sm; |
| 164 | |
| 165 | std::regex_match(typestring, sm, re); |
| 166 | |
| 167 | if (sm.size() != 4) { |
| 168 | fprintf(stderr, "invalid typestring"); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | namespace pyparse { |
| 173 |