Implement edit function in parser