handle animations returned by the parser, and highlight the lines that are being executed in the editor