[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: Adding location info to the C++ parser
From:       Roberto Raggi <roberto () kdevelop ! org>
Date:       2006-03-21 13:56:14
Message-ID: 200603211456.15216.roberto () kdevelop ! org
[Download RAW message or body]

Hi!

On Tuesday 21 March 2006 14:22, Matt Rogers wrote:
> Actually, once I figured out how many design patterns were used in the
> parser, it was quite easy. :)
great! btw feel free to change the code style.. 

>
> Thanks for adding the code that keeps track of the line numbers. Adam's
> code view already works much better now. :)
sure.. it's not finished yet.. but I'll try to my best and finish it this week

> hmm, yes, this is a good idea too. However, Richard Dale came up with a
> nice idea of having two sets of tokens, which i quote below:
hmm, you don't need two set of tokens (or token positions)..  token streams 
are very expensive, and column poisitions are *unstable* only in code 
generated by a substitution. Maybe you can generate a #pragma directive 
before the expanded code. The #pragma directive needs some information. For 
instance,
  - the original position
  - the macro definition (useful for code refactoring)
  - the start position of the actual arguments
  - ... 

> will do, thanks. :)
;-)

ciao robe

-- 
Roberto Raggi - roberto at kdevelop.org
KDevelop http://www.kdevelop.org

_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic