Patch do 2 things:
- It removes "section header name is empty" error. It looks not possible to get it. I think the only way to have Tok.empty() condition is when next() returns empty token because of error, in that case setError() will do nothing and itself useless.
- There are cases when tokens can go in pairs, like "=0xFF" vs "= 0xFF". And we should handle combined and separate forms. I suggest to have some function like nextJoined() to proccess such cases to simplify parsing.
You removed this error check, so the real delta of this patch is -4 lines. That's probably too small to introduce a new convenient function.