Most of SDL parser rewritten.