Hi Yuriy,
Excellent topic :).
I think the first thing in this project would be to set the goal. So, what is the goal of
your meta-model?
I did not look at the code yet, but by looking at the diagram, it seems to me that the
meta-model is quite specific to Smalltalk. If you only want to keep it for Smalltalk, you
can use the existing AST that is provided by the refactoring browser.
So, do you have the intention of handling other languages as well? If yes, then it would
be good to have some basic targets. For example, here is an idea that I used in another
project: Provide a nesting model for conditionals, and loops, and link Invocation and
Access to the AST nodes. In this way we can queries for certain invocations that happen
within an if or a for statement.
May I ask in what context are you interested in this?
Cheers,
Doru
On 28 Nov 2012, at 23:15, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
Hi everyone! I'm extending FAMIX meta-model to add
support for AST models. The project can be found at:
http://smalltalkhub.com/#!/~YuriyTymchuk/Famix-AST
I'll be thankful for any suggestions an support :)
At the moment I've developed a hierarchy of the AST meta-model itself and you can
load it from MSE files, as an example you can use this one:
https://raw.github.com/Uko/metamodels-support-files/master/mse/ast.mse Please note that
only middleOf:And: method has it's AST defined. To explore AST model you should select
a method node and see statements as it's subnode.
My next step is automatic creation of the AST model from existing source of the method.
Here is a diagram of a current Famix-AST class hierarchy:
View this message in context: Development of FAMIX AST meta-model extension
Sent from the moose-dev mailing list archive at
Nabble.com.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"What is more important: To be happy, or to make happy?"