Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Can Xtext tools be used from Antlr
Can Xtext tools be used from Antlr [message #654993] Thu, 17 February 2011 22:00 Go to next message
Stuart Hendren is currently offline Stuart HendrenFriend
Messages: 2
Registered: November 2009
Junior Member
Xtext seems really interesting and I've started to develop an Xtext model for my project. I currently use Antlr to parse the language in my project but I don't have any syntax highlighting or auto completion for the language. Is it possible to use the Xtext system to generate the syntax highlighting and auto completion from the existing Antlr file?

Re: Can Xtext tools be used from Antlr [message #655073 is a reply to message #654993] Fri, 18 February 2011 09:07 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Stuart,

you'll have to transform your Antlr grammar to the Xtext grammar in
order to use the framework. The Xtext grammar contains other information
than the Antlr verion so it's not possible to do a bullet proof
automated transformation. However, pasting the Antlr grammar into the
Xtext editor and fixing all the error markers should serve as a good
starting point.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 17.02.11 23:00, schrieb Stuart Hendren:
> Xtext seems really interesting and I've started to develop an Xtext
> model for my project. I currently use Antlr to parse the language in my
> project but I don't have any syntax highlighting or auto completion for
> the language. Is it possible to use the Xtext system to generate the
> syntax highlighting and auto completion from the existing Antlr file?
>
>
Previous Topic:getting reference to IXtextDocument and IDocumentEditor
Next Topic:Problems trying to get the example from git://github.com/meysholdt/e4dsl to work properly
Goto Forum:
  


Current Time: Thu Apr 25 10:50:00 GMT 2024

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

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

Back to the top