Add the parser for flash.
Make the optimizer generic.