Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Xtext 2.4.1] Register parser without file extension
[Xtext 2.4.1] Register parser without file extension [message #1200923] Thu, 21 November 2013 13:38 Go to next message
Wayne Campbell is currently offline Wayne CampbellFriend
Messages: 11
Registered: June 2013
Junior Member
Hey folks,

I need a way to invoke my Xtext parser for an extensionless file format which is distributed over a series of folders. These folders also contain files I do not want to parse:

/project/root/root
/project/subfolder/data/foo
/project/subfolder/data/bar  <-- not needed
/project/another_subfolder/blah
/project/another_subfolder/blubb <-- not needed


In this example, I want to read the files 'root', 'foo' and 'blah'

I cannot create a new Xtext-project without specifying a file extension. Is there a workaround for such a situation?

Thanks in advance for your help!
Re: [Xtext 2.4.1] Register parser without file extension [message #1213352 is a reply to message #1200923] Wed, 27 November 2013 07:49 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Content types are made for this. But be warned they might slow down the incremental builder.

See this post on stackoverflow:
http://stackoverflow.com/questions/8053960/how-do-i-include-files-with-no-extension-for-my-xtext-dsl
Re: [Xtext 2.4.1] Register parser without file extension [message #1216448 is a reply to message #1200923] Thu, 28 November 2013 13:34 Go to previous message
Wayne Campbell is currently offline Wayne CampbellFriend
Messages: 11
Registered: June 2013
Junior Member
That did it, thank you very much!!
Previous Topic:Xtext Validation Error
Next Topic:Using Xtext for content in Confluence wiki
Goto Forum:
  


Current Time: Fri Mar 29 10:28:47 GMT 2024

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

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

Back to the top