Implements the parse method for each instruction and file output