| 307 | } |
| 308 | |
| 309 | const char * |
| 310 | Tokenizer::iterNext(tok_iter_state *state) |
| 311 | { |
| 312 | tok_node *node = state->node; |
| 313 | ; |
| 314 | int index = state->index; |
| 315 | |
| 316 | index++; |
| 317 | if (index >= TOK_NODE_ELEMENTS) { |
| 318 | node = node->next; |
| 319 | if (node == nullptr) { |
| 320 | return nullptr; |
| 321 | } else { |
| 322 | index = 0; |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | if (node->el[index] != nullptr) { |
| 327 | state->node = node; |
| 328 | state->index = index; |
| 329 | return node->el[index]; |
| 330 | } else { |
| 331 | return nullptr; |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | void |
| 336 | Tokenizer::Print() const |
no outgoing calls
no test coverage detected