Hi,
You should look in the Moose-SmalltalkImporter package at the following classes: - SmalltalkImporter: responsible for creating the Famix model out of Smalltalk code. - SmalltalkMethodVisitor: a helper class that visits the AST of each method and creates the corresponding entities.
If you want to get an idea of how to AST looks like for a specific method, you can use the GTInspector. For example, in a Moose image: - execute: (MooseModel>>#setRootFolder) parseTree explore - choose the tree tab
See the result in the attached screenshot.
Cheers, Doru
On 1 Dec 2012, at 14:22, Yuriy Tymchuk yuriy.tymchuk@me.com wrote:
Can anyone give me a hint on where the parsed Smalltalk tokens are converted into FAMIX nodes, so I can use the ideas from there? I know that it should be all possible with some Visitor that will traverse the parsed tree, but it's always useful to know already existing solutions :)
-- View this message in context: http://moose-dev.97923.n3.nabble.com/Development-of-FAMIX-AST-meta-model-ext... Sent from the moose-dev mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing should have the right to be different."