Convert Parsed.java into C++

Some issues I think mainly style wise.