Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Use directly internal Antlr Parser without Guice
Use directly internal Antlr Parser without Guice [message #656540] Sat, 26 February 2011 16:22 Go to next message
Jake is currently offline JakeFriend
Messages: 21
Registered: November 2010
Junior Member
Hi, I've developed an IDE for a general purpose language.
The actual parser it's a recursive descent hand written.
I would substitute the actual parser with an auto generated one, and I
firstly try using the ResourceSet mechanism, but the problem is that the
bootstrap of injectors made the process slow, like two or three seconds
profiling the code.

My question is: can I use directly my InternaJolieParser, removing the
use of Guice and hacking the code (istantiatin old style the Grammar
Access)? It is extremely hard? Thank you very much

[Updated on: Sun, 27 February 2011 15:24]

Report message to a moderator

Re: USE DIRECTLY INTERNAL ANTLR PARSER WITHOUT GUICE [message #656752 is a reply to message #656540] Mon, 28 February 2011 12:33 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Of course you can try, but I'd neither recommend to use the parser
without Guice, as we wire up almost everything using DI, nor hook in a
hand written parser, as we also have a couple of expectations on the
behaviour of the parser, such as error recovery, AST and especially node
model construction, etc. which I think will be extremely hard to fulfill
in your own parser implementation.

The injector should be instantiated only once, and to wait 2 seconds for
a bunch of plugins to be loaded seems to be quite common in Eclipse.

Am 26.02.11 17:22, schrieb Diego Castronuovo:
> Hi, I've developed an IDE for new SOA language (JOLIE).
> The actual parser it's a recursive descent hand written.
> I would substitute the actual parser with an auto generated one, and I
> firstly try using the ResourceSet mechanism, but the problem is that the
> bootstrap of injectors made the process slow, like two or three seconds
> profiling the code.
>
> My question is: can I use directly my InternaJolieParser, removing the
> use of Guice and hacking the code (istantiatin old style the Grammar
> Access)? It is extremely hard? Thank you very much
>
>
>


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


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:syntactic extensibility
Next Topic:New project wizard
Goto Forum:
  


Current Time: Thu Apr 25 05:21:51 GMT 2024

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

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

Back to the top