Semi-automatic generation of parallelizable patterns from source code examples
D. Markovic, J.R. Hagemeister, Cauligi S. Raghavendra, Shekhar Bhansali · 2002
Generation of program patterns from source code is a difficult, time consuming and error-prone process when performed by programmers. We describe an implemented system which generates patterns from an abstract syntax tree with interaction by the user. Our approach is based on creating intermediate patterns by exploring data dependencies in the source code and allowing the user to change and/or eliminate parts of it in order to create a final pattern. We describe the architecture of our system as well as the pattern language used and illustrate our approach with examples.