Hello,
With nicolas we started to have a look at the eclipse-php-parser (provide
with PDT), to export a famix-mse file from a PHP project. We already started
to build an eclipse plugin that does some work:
=> We create an AST for each php file of the project
=> Then we have a visitor on this ast, and we are therfore able to make a
specific action for each kind of node visited
=> For now, we just export some FAMIXNamespace, FAMIXClass, FAMIXMethods.
So what's left is to implement each visit-method to extract informations
for each node visited. For that we will have to know a bit more PHP :) Maybe
the metamodel will have to be extended to take into account some
PHP-specific elements, I don't know.
If you want to have a look, sources are available via svn at:
https://scm.gforge.inria.fr/svn/lse/Projects/Verveine
Vervaine provide the extractor (not yet finished) for Java ans this one for
PHP. Both are using a common mechanism to generate famix entities and
extract them to mse.
I will be on holidays until august and will probably no longer work on it
until august. So if you want to have a look (and have the courage to install
eclipse to read java code:)), have some suggestions, want to implement
something, feel free to participate :)
Hi !
Yesterday I spent about 30 minutes with a guy from microsoft to generate .mse from C#. We were able to extract the data and generate the mse. I was happy to have a blueprint complexity after such a short amount of time.
Usman, we use http://ccimetadata.codeplex.com for extracting the data. I can share the code if you wish.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hello,
What should be the conversion in the pragma #MSEClass:super: in #annotation
methods? For now there is no conversion, example:
- super with dot and MSEClass without prefix of the meta-model (Famix)
FAMIXClass>>annotation
<MSEClass: #Class super: 'FAMIX.Type'>
- super without dot and MSEClass without prefix of the meta-model (Famix)
FAMIXComment>>annotation
<MSEClass: #Comment super: #FAMIXSourcedEntity>
<package: #FAMIX>
- MSEClass with prefix of the meta-model (Hismo) and super without dot
HismoAbstractHistory>>annotation
<MSEClass: #HismoAbstractHistory super: #FAMIXEntity>
I can fix it if you tell me correct pattern.
--
Andre Hora
Status: New
Owner: ----
CC: anquetil...(a)gmail.com
Labels: Type-Defect Priority-Medium Component-ExternalTools
New issue 715 by tu...(a)tudorgirba.com: VerveineJ does not export source
anchors to Enums
http://code.google.com/p/moose-technology/issues/detail?id=715
FAMIX.Enums should have SourceAnchors attached.
Hi,
I want to ask if there is a elegant solution for the following problem:
In my grammar there are references (symbols/names that reference entities somewhere). One is
Syntax>>typeReference
^ self failOnReservedWords: (
#uppercase asParser,
(#word asParser plus separatedBy: $- asParser) optional
) flatten
These typeReferences can be standalone tokens (parsed with a token parse class that parses whitespaces and comments)
Syntax>>reference
^ typeReference asn1Token / valueReference asn1Token / ...
with
PPParser>>asn1Token
^ (ASN1TokenParser on: self) ==> [:node| node value]
or embedded in another type
Syntax>>valueSetFieldReference
^ $& asParser, typeReference
If have two classes, one for the syntax and for the parsing into model objects. Every typeReference should be parsed in the parser class to
Parser>>typeReference
^ super typeReference ==> [:node|
ASN1ReferenceNode new name: node ]
The problem is that it is hard to have the typeReference be tokenized or not and make sure they are all parsed to the ASNReferenceNode. The example above
Syntax>>reference
^ typeReference asn1Token / valueReference asn1Token / ...
does not work because typeReferences result is transformedd to the model class but the asn1Token applied afterwards gives back a string again. I tried having a second parser typeReferenceToken but that only works if I double the code of typeReference in syntax and parser class. And as I am running short of instance variables I would prefer a solution without having the need for creating new instance variables.
Any ideas?
I hope I could explain the problem enough to get you the context you need,
Norbert
Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 664 by jannik.l...(a)gmail.com: MooseMenu - export GML graph
http://code.google.com/p/moose-technology/issues/detail?id=664
It should be cool to specify the place of the new file.
For now, it is saved just near the image.
Hello!
I'm in trouble (attached) to run the script below:
Gofer new
squeaksource: 'FameImportExportEx';
package: 'Fame-ImportExport-Extensions';
load.
I’m using Windows-OS and Moose Suite 4.5. I need help to export metrics to .CSV.
Where should I run the script? I’m running the workspace Moose Suite
4.5, correct?
Thank you.
--
PROF. PALOMA MAIRA DE OLIVEIRA
__________________________________________________________
IFMG - Campus Formiga
Doutoranda em Ciência da Computação - DCC/UFMG
Mestra em Modelagem Matemática e Computacional - CEFET/MG
Bacharel em Ciência da Computação - UNIFOR/MG