Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to bind AbstractInternalAntlrParser(How to bind AbstractInternalAntlrParser)
How to bind AbstractInternalAntlrParser [message #1731173] Tue, 03 May 2016 10:30 Go to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
How to bind AbstractInternalAntlrParser

I need to override some methods in AbstractInternalAntlrParser
I tried to bind MyDslAbstractInternalAntlrParser in MyDslRuntimeModule.configure
as follows:
binder.bind(AbstractInternalAntlrParser.class).to(MyDslAbstractInternalAntlrParser.class);
But i got exceptions like
com.google.inject.CreationException: Guice creation errors:
1) No implementation org.xtext.example.mydsl.MyDslAbstractInternalAntlrParser was bound.
at org.xtext.example.mydsl.MyDslRuntimeModule.configure(MyDslRuntimeModule.java:23)
Re: How to bind AbstractInternalAntlrParser [message #1731175 is a reply to message #1731173] Tue, 03 May 2016 10:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

it is constructed here

org.xtext.example.mydsl.parser.antlr.MyDslParser.createParser(XtextTokenStream)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to bind AbstractInternalAntlrParser [message #1731187 is a reply to message #1731175] Tue, 03 May 2016 12:00 Go to previous messageGo to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
The constructed one is InternalMyDslParser
How can I generated construction using my class MyDslAbstractInternalAntlrParser instead?
Re: How to bind AbstractInternalAntlrParser [message #1731189 is a reply to message #1731187] Tue, 03 May 2016 12:05 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
kimi raikonnan <forums-noreply@xxxxxxxx> wrote:
> The constructed one is InternalMyDslParser
> How can I generated construction using my class MyDslAbstractInternalAntlrParser instead?
>

Not at all. Simply subclass does not work?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext Proxy handler error
Next Topic:Showing error on run time application
Goto Forum:
  


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

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

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

Back to the top