S-5 Add parser and its tests