|
ROSE
0.11.96.11
|
Edit distance for ASTs.
Computes the edit distance of two abstract syntax trees, a souce and target, by converting each tree to a list of nodes, then computing Levenshtein edit distance on the two lists. The list nodes are constructed from AST nodes using a user-defined type (template parameter) so that the user has full control over when two list nodes are considered equal.
Example usage:
Classes | |
| class | Analysis |
| Edit distance analysis. More... | |
| class | Node |
| Type for comparing two AST nodes. More... | |
| class | NodeSelector |
1.8.17