Hi Again :-)
So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application. Here are my two tries: So, it seems to work well :-) Happy I am :-) Cheers, Alexandre [ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi, Very nice. How was it parsed? Also, is the meta-model available? Doru
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Yes, this is still early work. My email was more saying ‘Hey! We are working on this’ than ‘We have something cool to share right now’.
Leonardo use Esprima, a JavaScript parser to get a JSON. We then import it in Moose. Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi, Great to hear. Indeed this will be a valuable addition. What about the meta-model? In the screenshot I saw FAMIXJsObject. Where is that packaged? Cheers, Doru On Wed, Mar 11, 2015 at 9:27 PM, Alexandre Bergel <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by abergel
you mean these are classes extracted from the JS code? if so, what are the (few) links? nicolas On 11/03/2015 18:24, Alexandre Bergel
wrote:
Hi Again :-) _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
I was thinking that the strategy to detect classes (Section III.A from the paper) could be implemented in Moose, on the class FAMIXJSObject ?
The link are about the nesting I think using #belongTo Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel <[hidden email]> wrote:
The strategy to detect classes is implemented in Pharo. It reads the FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance, FAMIXMethod and FAMIXAttributes. Try this with the "js model" you already have: js1 := JSClassFinder new. js1 famixJSModel: (js model). js1 searchJSClasses. js1 classModel.
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi, Could you please let me know where the JS meta-model is defined? I am looking for a Gofer script to get the code :) Doru On Fri, Mar 13, 2015 at 10:35 AM, Leonardo Silva <[hidden email]> wrote:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
On Fri, Mar 13, 2015 at 10:43 AM, Tudor Girba <[hidden email]> wrote:
Hi
You can find it here: MCHttpRepository user: '' password: '' I am still working on it. It lacks documentation and more tests with JS applications. But you can try it ! Leonardo
_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Girba,
Leonardo is my PhD student and he is visiting Lille for 6 months. We really would like to contribute to JavaScript analysis in Moose. So any comments, suggestions are welcome. Maybe what we have today is more like a prototype, but Leonardo has time to work on something more robust. -- Marco Tulio. On Fri, Mar 13, 2015 at 6:59 AM, Leonardo Silva <[hidden email]> wrote: > On Fri, Mar 13, 2015 at 10:43 AM, Tudor Girba <[hidden email]> wrote: >> >> Hi, >> > Hi > >> >> Could you please let me know where the JS meta-model is defined? I am >> looking for a Gofer script to get the code :) > > > You can find it here: > > MCHttpRepository > location: 'http://smalltalkhub.com/mc/LeonardoHumberto/Famix-JS/main' > user: '' > password: '' > > I am still working on it. It lacks documentation and more tests with JS > applications. > But you can try it ! > > Leonardo > >> >> Doru >> >> On Fri, Mar 13, 2015 at 10:35 AM, Leonardo Silva >> <[hidden email]> wrote: >>> >>> >>> On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel >>> <[hidden email]> wrote: >>>> >>>> I was thinking that the strategy to detect classes (Section III.A from >>>> the paper) could be implemented in Moose, on the class FAMIXJSObject ? >>> >>> >>> The strategy to detect classes is implemented in Pharo. It reads the >>> FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance, >>> FAMIXMethod and FAMIXAttributes. >>> >>> Try this with the "js model" you already have: >>> >>> js1 := JSClassFinder new. >>> js1 famixJSModel: (js model). >>> js1 searchJSClasses. >>> js1 classModel. >>> >>>> >>>> The link are about the nesting I think using #belongTo >>>> >>>> Alexandre >>>> -- >>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: >>>> Alexandre Bergel http://www.bergel.eu >>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >>>> >>>> >>>> >>>> On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil >>>> <[hidden email]> wrote: >>>> >>>> >>>> you mean these are classes extracted from the JS code? >>>> >>>> if so, what are the (few) links? >>>> >>>> nicolas >>>> >>>> On 11/03/2015 18:24, Alexandre Bergel wrote: >>>> >>>> Hi Again :-) >>>> >>>> So, I compiled a fraction of the BBC News JavaScript application. And I >>>> started to visualize their JavaScript application. >>>> >>>> Here are my two tries: >>>> <Mail Attachment.png><Mail Attachment.png> >>>> >>>> So, it seems to work well :-) Happy I am :-) >>>> >>>> Cheers, >>>> Alexandre >>>> >>>> [ NB: I put the moose mailing list in copy since this may have a great >>>> interest in the community ] >>>> -- >>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: >>>> Alexandre Bergel http://www.bergel.eu >>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >>>> >>>> >>>> >>>> >>>> > Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi, Nice to meet you. Please call me Doru :) Sounds great. Please keep us posted with the progress so that we can provide feedback. Cheers, Doru On Fri, Mar 13, 2015 at 12:43 PM, Marco Tulio Valente <[hidden email]> wrote: Hi Girba, _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |