Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Creating Jackrabbit's CND file editor
Creating Jackrabbit's CND file editor [message #554378] Sun, 22 August 2010 17:32 Go to next message
Sergiy Shyrkov is currently offline Sergiy ShyrkovFriend
Messages: 2
Registered: August 2010
Junior Member
Hello,

I am new to Xtext (just watched one Webinar and couple of presentations) and would like to ask for help in getting started.

As a test case I decided to crate a simple editor for Jackrabbit's CND files - actually, we need an extended version of them.

There was an effort and working prototype of the editor as a part of the JCR Management Eclipse project, driven by Sandro Boehme, but it is stopped and it was using oaw syntax, so the code does not give me lot of clue on creating Xtext grammar.

My main problem is representing custom namespaces (similar to XML namespaces), i.e.:

<c = 'http://mycompany.org/core'>
<org = 'http://mycompany.org/modules/organisation'>

[org:empleyee] > c:person
 - org:employeeId
...


Could you, please, point me out to examples (right now I checked only arithmetics and domain model ones) or documentation to start with?
Just that I don't get into wrong direction.

Thank you in advance!

Kind regards
Sergiy
Re: Creating Jackrabbit's CND file editor [message #554387 is a reply to message #554378] Sun, 22 August 2010 18:42 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

if you have the grammar for the "oAW syntax" editor, you should have quite a good starting point, as the grammar syntax did not change as dramatically as you might think.

Lexer rules are now called terminal rules and the header looks different. But apart from that, the two look quite similar. If you have problems with porting particular rules feel free to ask.

Also, I think there are a couple of blogs describing migration from oAW 4.3.x to Xtext 0.7 which should also serve as a good starter if you have the original code.

Alex
Re: Creating Jackrabbit's CND file editor [message #554388 is a reply to message #554378] Sun, 22 August 2010 18:44 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Did you read the documentation? It is installed into Eclipse Help as
well as availabel online : http://www.eclipse.org/Xtext/documentation/

Am 8/22/10 7:32 PM, schrieb Sergiy Shyrkov:
> Hello,
>
> I am new to Xtext (just watched one Webinar and couple of presentations)
> and would like to ask for help in getting started.
>
> As a test case I decided to crate a simple editor for
> http://jackrabbit.apache.org/node-type-notation.html files - actually,
> we need an extended version of them.
>
> There was an effort and working prototype of the editor as a part of the
> http://wiki.eclipse.org/JCR_Management Eclipse project, driven by Sandro
> Boehme, but it is stopped and it was using oaw syntax, so the code does
> not give me lot of clue on creating Xtext grammar.
>
> My main problem is representing custom namespaces (similar to XML
> namespaces), i.e.:
>
>
> <c = 'http://mycompany.org/core'>
> <org = 'http://mycompany.org/modules/organisation'>
>
> [org:empleyee] > c:person
> - org:employeeId
> ..
>
>
> Could you, please, point me out to examples (right now I checked only
> arithmetics and domain model ones) or documentation to start with?
> Just that I don't get into wrong direction.
>
> Thank you in advance!
>
> Kind regards
> Sergiy


--
--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: Creating Jackrabbit's CND file editor [message #554391 is a reply to message #554378] Sun, 22 August 2010 19:14 Go to previous message
Sergiy Shyrkov is currently offline Sergiy ShyrkovFriend
Messages: 2
Registered: August 2010
Junior Member
Thank you for the prompt reply!
I will use the documentation and first try to find the parts I can port from JCR Management project.

I also wanted to be sure, that I am not the another one newbie reinventing the wheel with CND editor Smile
That is why I would appreciate any feedbacks if anyone has experience with it or have seen an effort to implement it with Xtext.

The Xtext is really amazing project and emerges really fast that is why it is hard to find out if a particular effort is currently "under development" or not started at all.

Thanks again!

Kind regards
Sergiy
Previous Topic:Aggregrated 1.0.x "everything-I-need-to-work-with-DSLs" p2 site
Next Topic:Resolving references changed with 1.0?
Goto Forum:
  


Current Time: Fri Apr 26 23:38:06 GMT 2024

Powered by FUDForum. Page generated in 0.03511 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top