Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Code completion and broken AST
Code completion and broken AST [message #541968] Wed, 23 June 2010 12:17 Go to next message
Jan F. is currently offline Jan F.Friend
Messages: 6
Registered: June 2010
Junior Member
What is the DLTK's typical approach for working with AST that is broken by interim edits, such as typing "this." to invoke code completion?

Is there a concept of using the previous cached AST, or should the parser rather be made to be resistent to any interim editing and provide the structure down to method/fields/lcoal vars in all possible cases?
Re: Code completion and broken AST [message #543524 is a reply to message #541968] Tue, 29 June 2010 16:46 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Jan,

The typical approach is making the parser tolerant to the errors, so it can recover after the error and continue on the next statement, etc.

Regards,
Alex
Re: Code completion and broken AST [message #544142 is a reply to message #543524] Thu, 01 July 2010 17:56 Go to previous message
Jan F. is currently offline Jan F.Friend
Messages: 7
Registered: March 2010
Junior Member
Thanks Alex!
Previous Topic:Access to imported elements
Next Topic:Resolving item against project's build path
Goto Forum:
  


Current Time: Fri Apr 19 19:40:47 GMT 2024

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

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

Back to the top