Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Extend xbase expressions
Extend xbase expressions [message #1041058] Sun, 14 April 2013 10:54 Go to next message
andrea rossi is currently offline andrea rossi
Messages: 23
Registered: April 2013
Junior Member
Hi,

In my dsl i would like to extend xbase expressions e.g :


grammar provaxbase.Provaxbase with org.eclipse.xtext.xbase.Xbase

...

Model:
	elements+=Entity*;
	
Entity:
	'entity' '' body = XExpressionInsideBlock ;

MyExpession1 returns xbase::XExpression:
	....
;


Wherever there is XExpression I want to call all xbase parser rules and in addition all my expression rules (e.g MyExpression1)
How can i do?
Re: Extend xbase expressions [message #1041857 is a reply to message #1041058] Mon, 15 April 2013 13:11 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5849
Registered: July 2009
Senior Member
Hi,

you have to override the rules you want to hook in from the supergrammar.
Previous Topic:xbase interpreter documentation ?
Next Topic:Could anybody provide some information about NodeModelUtils?
Goto Forum:
  


Current Time: Mon Apr 21 03:07:14 EDT 2014

Powered by FUDForum. Page generated in 0.02188 seconds