Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Very first impressions and.... [FEATURE REQUESTS]
Re: Very first impressions and.... [FEATURE REQUESTS] [message #11445 is a reply to message #11441] Wed, 12 September 2007 20:59 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1308
Registered: September 2007
Ultimate Contributor
luzr wrote on Wed, 12 September 2007 18:40


What file do you want to parse? Buffered file from preprocessor? Actual file you are working on?


buffered file from preprocessor kept in sync with the file I'm workin on.... This is the hardest (and fastest) way. But there's a simpler way :
I've not looked at your parser code, but I guess it does a first scan on file when ide opens, and then it keeps scanning only the changes you make to file, am I wrong ?
So, at ide opening you add the preprocessor pass before the full scan pass. Then, when you work on file, there are 2 possibilities :
1- you make changes not related to # preprocessing directives, so your code work as usual.
2- you make changes that involves preprocessing directives. So you start a cpp preprocess in background, then a full scan in background too. While this (long) process is not finished, you keep working as usual on previous buffered file; when preprocess-scan thread finishes, you switch to the new buffer.

Quote:


The preprocessor is the simple part... The hard part is caching logic.


Of course, but that is already done. It should only a matter of keeping a second buffer (aka symbol table in memory) and switch to it when the long job is done. It should be not too difficult to insert in current code. I'd say that the hard part is the scanner, but this one seems to me very well done yet.

Ciao

Max

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Escaped backslash in string confuse editor [bug]
Next Topic: Strange behaviour of the query option of TheIDE
Goto Forum:
  


Current Time: Mon Aug 04 15:57:09 CEST 2025

Total time taken to generate the page: 0.07071 seconds