Comment Extractor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Comment Extractor

BriceG
Hi,
I’d like to know if there is some kind of comment extractor for a source code () in Moose.
I was trying to get a quick understanding of methods from an old code (not smalltalk) and I couldn’t get rid of the source code itself… 
I need a way to get the comment associated to a method.

I could do it by myself but if there is already a way to do it I prefer to use it (or at least adapt it to my case).

Thanks, 

--------------
Brice Govin 
PhD student in RMoD research team at INRIA Lille 
Software Engineer at THALES AIR SYSTEMS Rungis
ENSTA-Bretagne ENSI2014
22 Avenue du General Leclerc 92340 BOURG-LA-REINE


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Comment Extractor

Stephan Eggermont-3
On 25-02-16 19:56, Brice GOVIN wrote:
> Hi,
> I’d like to know if there is some kind of comment extractor for a source
> code () in Moose.
> I was trying to get a quick understanding of methods from an old code
> (not smalltalk) and I couldn’t get rid of the source code itself…
> I need a way to get the comment associated to a method.
>
> I could do it by myself but if there is already a way to do it I prefer
> to use it (or at least adapt it to my case).

In a FAMIX model? That responds to allComments, doesn't it?

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Comment Extractor

BriceG
Yep that’s it but it needs the comment to be in the model.
I’ll take a look on that  tho.
Thanks for the answer !
--------------
Brice Govin 
PhD student in RMoD research team at INRIA Lille 
Software Engineer at THALES AIR SYSTEMS Rungis
ENSTA-Bretagne ENSI2014
22 Avenue du General Leclerc 92340 BOURG-LA-REINE

On 25 Feb 2016, at 20:48, Stephan Eggermont <[hidden email]> wrote:

On 25-02-16 19:56, Brice GOVIN wrote:
Hi,
I’d like to know if there is some kind of comment extractor for a source
code () in Moose.
I was trying to get a quick understanding of methods from an old code
(not smalltalk) and I couldn’t get rid of the source code itself…
I need a way to get the comment associated to a method.

I could do it by myself but if there is already a way to do it I prefer
to use it (or at least adapt it to my case).

In a FAMIX model? That responds to allComments, doesn't it?

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Comment Extractor

Stephan Eggermont-3
On 26-02-16 15:14, Brice GOVIN wrote:
> Yep that’s it but it needs the comment to be in the model.
> I’ll take a look on that  tho.
> Thanks for the answer !

Yes. Otherwise, write an island parser. There's one in Petitparser

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev