OCL AST - Editing, Parsing and Cloning [message #1754168] |
Tue, 14 February 2017 16:59  |
Eclipse User |
|
|
|
Bonjour,
I'm working on OCL ASTs provided by the org.eclipse.ocl * framework.
I get from the text document a tree which root is an ExpressionInOCL with its body and context. Then I modify it on the fly depending on certain needs.
Now, I would like to try different transformations/changes on the elements without side effects : I need to clone, a deep cloning. And I would like to have an estimation of how many errors are in the modified structure as a way of measurement. I'm sure these functionalities have been implemented somwhere and I don't want to reinvent the wheel again - I might end up with a square one.
I thus come with three questions - the first be the most critical.
0. How do you overcome the bootstrap syndrome on google ? Looking for Check/Validation and OCL always refers to model validation using OCL - what about checking OCL itself ?
1. I need to clone the ASTs (pointers war) and I wonder, again, where is the tooling to handle the constraints and their structure. Any idea ?
2. As I would like to check partial ASTs.. Is there a package to try syntax on CallExp or other OCL ELement without turning them back to text ?
Thanks,
Edouard
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04102 seconds