Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Grammar causing outofmemory error(Inheritance of grammar casuing GenerateXXX to hang)
Grammar causing outofmemory error [message #891536] Mon, 25 June 2012 07:48 Go to next message
Subhrojyoti Roy Chaudhuri is currently offline Subhrojyoti Roy ChaudhuriFriend
Messages: 2
Registered: June 2012
Junior Member
I am attaching the grammar that causes the GenerateDementor workflow to hang. I tried to debug the grammar and found out that the actual problem is in the following definition. If I comment it out then the entire generation goes through without any problems. Could please take a look.

AbstractOS:
OS | LinuxOS | UnixOS
;


Thanks for the help!

Subhro


Re: Grammar causing outofmemory error [message #891745 is a reply to message #891536] Mon, 25 June 2012 18:10 Go to previous messageGo to next message
masija . is currently offline masija .Friend
Messages: 59
Registered: July 2010
Member
Hi Subhro,

I think, you forgot the brackets...
This works fine for me, give it a try.

OS: 
	'OS:' name = ID
  	(('vendor name' vname = STRING)? &
	('OS version' version = INT) &
	(features+=Feature)*)
	'end OS'
;

LinuxOS: 
	'Linux OS:' name = ID
  	(('vendor name' vname = STRING)? &
	('Linux version' version = INT) &
	((features+=Feature)?)*)
	'end Linux OS'
;

UnixOS: 
	'Unix OS:' name = ID
  	(('vendor name' vname = STRING)? &
	('unix version' version = INT) &
	((features+=Feature)?)*)
	'end Unix OS'
;

[Updated on: Mon, 25 June 2012 18:49]

Report message to a moderator

Re: Grammar causing outofmemory error [message #892070 is a reply to message #891536] Wed, 27 June 2012 06:32 Go to previous message
Subhrojyoti Roy Chaudhuri is currently offline Subhrojyoti Roy ChaudhuriFriend
Messages: 2
Registered: June 2012
Junior Member
Thank you - Worked!
Previous Topic:Improved ParseHelper suggestion
Next Topic:How to embed XBase expressions in an Xtext DSL
Goto Forum:
  


Current Time: Fri Apr 26 23:22:19 GMT 2024

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

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

Back to the top