Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » ANTLR replacement
ANTLR replacement [message #1226101] Tue, 31 December 2013 18:00 Go to next message
Markus Wolf is currently offline Markus WolfFriend
Messages: 153
Registered: July 2009
Senior Member
Hi there,

I would like to replace the ANTLR parser in Xtext with some other one, because I'd like to create an editor for a non-CFG grammar.
Therefore I've started to create a PEG parser generator which fulfills my needs.
Currently I try to create the EMF models (the metamodel is already generated by the parser).

Is there a way to replace ANTLR, or is it too deep integrated into Xtext?
Any hint or starting point would be great.

Thanks
Markus
Re: ANTLR replacement [message #1226318 is a reply to message #1226101] Wed, 01 January 2014 11:07 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If you really want to replace ANTLR in the editor, I'd rethink since
Xtext creates two parsers one specifically for the editor.

If a non-ANTLR parser will do, you might be interested in the
preliminary work I did on an Xtext grammar to LPG grammar
transformation. One day I might have more time and finish it. See
http://git.eclipse.org/c/ocl/org.eclipse.ocl.git at
examples/org.eclipse.ocl.examples.xtext2lpg.

Regards

Ed Willink



On 31/12/2013 18:00, Markus Wolf wrote:
> Hi there,
>
> I would like to replace the ANTLR parser in Xtext with some other one,
> because I'd like to create an editor for a non-CFG grammar.
> Therefore I've started to create a PEG parser generator which fulfills
> my needs.
> Currently I try to create the EMF models (the metamodel is already
> generated by the parser).
>
> Is there a way to replace ANTLR, or is it too deep integrated into Xtext?
> Any hint or starting point would be great.
>
> Thanks
> Markus
Previous Topic:Invalid 'import is never used' warning for annotations
Next Topic:How to implement hyperlinking for URI of importURI grammar element?
Goto Forum:
  


Current Time: Fri Apr 26 02:37:23 GMT 2024

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

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

Back to the top