Generating code for NesC language [message #1131085] |
Thu, 10 October 2013 07:11 |
Aditya Pavan Devisetty Messages: 14 Registered: August 2013 |
Junior Member |
|
|
Hi,
I want to develop an Eclipse graphical Editor Application for NesC programming language(for more about NesC go to URL: en.wikipedia.org/wiki/NesC) . NesC (network embedded systems C), pronounced "NES-see", is a component-based, event-driven programming language used to build applications for the TinyOS platform. TinyOS is an operating environment designed to run on embedded devices used in distributed wireless sensor networks. nesC is built as an extension to the C programming language with components "wired" together to run applications on TinyOS.
NesC contains Components and interfaces , these components are wired to other components based on the interfaces. I want to show these components and interfaces in a Palette, So that the user can easily drag and drop the components and wired the components based on interfaces on design tab of multipage editor ; Nesc code will be genarated on source tab, which is like a Eclipse Window Builder.
Would you please suggest me, how to generate code in source tab based on the components in design page of multipage editor. I have a NesC parser which parses the NesC code and constructs AST. And I want to develop this application using GEF,EMF and GMF.
Thanks & Regards,
Venkata Aditya Pavan D.
|
|
|
Re: Generating code for NesC language [message #1131719 is a reply to message #1131085] |
Thu, 10 October 2013 19:07 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Aditya,
Comments below.
On 10/10/2013 9:11 AM, Aditya Pavan Devisetty wrote:
> Hi,
>
> I want to develop an Eclipse graphical Editor Application for NesC
> programming language(for more about NesC go to URL:
> en.wikipedia.org/wiki/NesC) . NesC (network embedded systems C),
> pronounced "NES-see", is a component-based, event-driven programming
> language used to build applications for the TinyOS platform. TinyOS is
> an operating environment designed to run on embedded devices used in
> distributed wireless sensor networks. nesC is built as an extension to
> the C programming language with components "wired" together to run
> applications on TinyOS.
>
> NesC contains Components and interfaces , these components
> are wired to other components based on the interfaces. I want to show
> these components and interfaces in a Palette, So that the user can
> easily drag and drop the components and wired the components based on
> interfaces on design tab of multipage editor ; Nesc code will be
> genarated on source tab, which is like a Eclipse Window Builder.
>
> Would you please suggest me, how to generate code in source tab
> based on the components in design page of multipage editor.
That's not a trivial answer... The Xtend language might be a nice fit
if you want to generate text. Otherwise you might want to do some kind
of model to NesC AST transformation, but I know nothing of the NesC AST
or of the model from which you're generating...
> I have a NesC parser which parses the NesC code and constructs AST.
> And I want to develop this application using GEF,EMF and GMF.
>
> Thanks & Regards,
> Venkata Aditya Pavan D.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02169 seconds