Parsing and pretty printing of Roman numerals