Cleans the program from nonbrainfuck tokens before processing and adds support for the degenerate case (so that the result is still a generator even if it doesn't return anything)