1. A user-extensible rule-based source code modification tool comprising: a rule definition interface providing access for end users to establish rules for porting source code to a target platform; a scanner configured to parse source code into multiple different token sets; and, a rule analyzer configured to match the different token sets with the rules in order to modify the source code for porting to the target platform in accordance with selected matched ones of the rules.