<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_next(self, i):
 """Get next format char."""


        c = next(i)
        return self.format_references(next(i), i) if c == '\\' else c