摘要 |
Embodiments of the present invention address deficiencies of the art in respect to parsing for source code porting and provide a novel and non-obvious method, system and computer program product for a user-extensible rule-based source code modification tool. According to an aspect of the present invention, an automated parsing tool for parsing and modifying source code is provided which supports the addition of user-defined rules, and which parses and either modifies source code or suggests modifications to source code based upon the user-defined rules. Users can also associate a user-defined or predefined modification with each rule so that upon detection of a condition satisfying the rule, the user can be presented with the modification as an option. Compound rules built by using one or more rules as preconditions to a rule are also supported.
|