Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » xtext same extensions in two different xtext files?(xtext same extensions in two different xtext files?)
xtext same extensions in two different xtext files? [message #1738638] Thu, 21 July 2016 15:08
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

I was successful in writing two xtext grammar files for two different extensions. Is it possible to have grammar for same extension in two different grammar files?

I have written:
language = StandardLanguage {
name = "com.prolifics.jpl.JPLEditor"
fileExtensions = "jpl"

serializer = {
generateStub = false
}
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
parserGenerator = {
options = {
ignoreCase = true
backtrack=true
}
}
}
language = StandardLanguage {
name = "com.prolifics.jpl.JPLSmDm"
fileExtensions = "jpl"

serializer = {
generateStub = false
}
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
parserGenerator = {
options = {
ignoreCase = true
backtrack=true
}
}
}
language = StandardLanguage {
name = "com.prolifics.jpl.JPLAsc"
fileExtensions = "asc"

serializer = {
generateStub = false
}
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
parserGenerator = {
options = {
ignoreCase = true
}
}
}

But it compiled successfully but my editor working for second grammar file parser rules only not with both the grammar files? Any help?
Previous Topic:Class in plugin not resolving in IDE
Next Topic:Xtext keyword coming in another rule problem
Goto Forum:
  


Current Time: Tue Nov 13 06:38:47 GMT 2018

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

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

Back to the top