Convert Parsed.java into C++

I'll merge once I have

- [ ] documentation
- [ ] Answer on whether private classes are supposed to be defined in the header file or in the cpp file.