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

List:       kdevelop-devel
Subject:    Re: KDevelop-PG bug when printing First/Follow conflicts
From:       Roberto Raggi <roberto () kdevelop ! org>
Date:       2007-07-19 23:44:57
Message-ID: D1850AA4-2DF3-4792-B286-71F97606FCED () kdevelop ! org
[Download RAW message or body]


Il giorno 20/lug/07, alle ore 01:13, Roberto Raggi ha scritto:
>
>  - improve the library. I want generalize the kdev-pg-token-stream  
> and rewrite AST and Visitors

for instance the code to visit a list_node<ast*> is very ugly :-)  
look at this

     if (node->stmt_sequence)
       {
         const list_node<statement_ast*> *__it = node->stmt_sequence- 
 >to_front(), *__end = __it;
         do
           {
             visit_node(__it->element);
             __it = __it->next;
           }
         while (__it != __end);
       }

see? it doesn't have to be so ugly and difficult to use.

I think I will change the coding style of the generated code too,  
something a little more Qt friendly. I was in I want to be a STL- 
developer-mode when I started kdev-pg, but now I'm sick of all that  
underscores ;-)

ciao robe


_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://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