portAS.pl New Requirements

3 March 2013

If a follow up application is going to be worthwhile it should be better than the original. Requirements are:

  • Parse all ActionScript without modifying the source
  • Retain the order of symbols in output files
  • Don’t lose source
  • Portable

Parse all ActionScript without modifying the source Valid ActionScript comes in many shapes and sizes. The application must be able to consume all files, in bulk, without requiring any time consuming pre-conditioning.

Retain the order of symbols in output files A major with portAS.pl is symbols are stored in a dictionary and order information is lost, functions and classes are output in dictionary order.

Don’t lose source If something in the source has no representation it shouldn’t disappear. Missing conditionals are very hard to debug.

Portable Three years ago I was completely Windows based. Now I’m Mac based. Next year? Maybe Linux based. Regardless, whatever I write should work.