I've posted this on the wiki, but I post it again here:
Two ideas : intelligent refactoring ?
1. I think it should be possible to include to the refactoring commands some intelligence, using an expert system like CLIPS for example. That is to say, the set of rules (the knowledge) would be applied to the abstract syntax tree to improve the quality and safety of the refactoring.
Once the parser and the AST database are developed, improving the tool by working on the expert system should prove much easier and opens many more perspectives than a simple C++ program, as it is just a matter of adding/modifying rules of the inference motor.
CLIPS was developed by the NASA for its own use and benefits of 18 years of development. It is free software and it seems pretty powerful : http://www.ghg.net/clips/CLIPS.html
2. An "intelligent" compare/merge files function could also be developed using such a tool.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-05-24
Pushing this idea to the stretch, it would be possible to add rules to the expert system to recognize design faults and/or apply recommended design patterns to the current design.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, as soon as or AST and Symbolables recognizes global structures and we have some globally working refactorings this could be something to discuss.
Andre
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've posted this on the wiki, but I post it again here:
Two ideas : intelligent refactoring ?
1. I think it should be possible to include to the refactoring commands some intelligence, using an expert system like CLIPS for example. That is to say, the set of rules (the knowledge) would be applied to the abstract syntax tree to improve the quality and safety of the refactoring.
Once the parser and the AST database are developed, improving the tool by working on the expert system should prove much easier and opens many more perspectives than a simple C++ program, as it is just a matter of adding/modifying rules of the inference motor.
CLIPS was developed by the NASA for its own use and benefits of 18 years of development. It is free software and it seems pretty powerful : http://www.ghg.net/clips/CLIPS.html
2. An "intelligent" compare/merge files function could also be developed using such a tool.
Pushing this idea to the stretch, it would be possible to add rules to the expert system to recognize design faults and/or apply recommended design patterns to the current design.
Well, as soon as or AST and Symbolables recognizes global structures and we have some globally working refactorings this could be something to discuss.
Andre