Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generating from BNF Grammar at runtime
Generating from BNF Grammar at runtime [message #1007889] Fri, 08 February 2013 00:14 Go to next message
Maurice O'Connor is currently offline Maurice O'ConnorFriend
Messages: 86
Registered: July 2009
Member
I have been playing with XText for a short time, wondering should I use it on a project.

Is it possible to generate everything from the grammar programmatically at runtime in a normal JVM (ie. running "headless")? Even the EMF Model? I may be fundamentally misunderstanding something here, it's been a while since I dipped my toes in modeling waters!

Re: Generating from BNF Grammar at runtime [message #1007974 is a reply to message #1007889] Fri, 08 February 2013 07:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6499
Registered: July 2009
Senior Member
Hi do you mean building a binary from the language. This is usually
done using tycho or buck minister.

Or do you mean reading the model and processing it?

http://wiki.eclipse.org/Xtext/FAQ#How_do_I_load_my_model_in_a_standalon
e_Java_application.C2.A0.3F

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Generating from BNF Grammar at runtime [message #1007979 is a reply to message #1007889] Fri, 08 February 2013 08:59 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 658
Registered: July 2009
Senior Member
The MWE2 workflow is executed in a new plain JVM, so the answer is: Yes,
you can. Have a look at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher



Am 08.02.13 01:14, schrieb Maurice O'Connor:
> I have been playing with XText for a short time, wondering should I use
> it on a project.
>
> Is it possible to generate everything from the grammar programmatically
> at runtime in a normal JVM (ie. running "headless")? Even the EMF Model?
> I may be fundamentally misunderstanding something here, it's been a
> while since I dipped my toes in modeling waters!
>
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Generating from BNF Grammar at runtime [message #1008506 is a reply to message #1007889] Tue, 12 February 2013 18:52 Go to previous message
Maurice O'Connor is currently offline Maurice O'ConnorFriend
Messages: 86
Registered: July 2009
Member
Cool I will look at this, thanks for the help.
Previous Topic:ImportURI scoping case sensitive
Next Topic:Strange Exception thrown in JUNIT test
Goto Forum:
  


Current Time: Fri Nov 28 20:46:50 GMT 2014

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

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