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

List:       kdevelop-devel
Subject:    how to define order in visit_foo for KDevelop-pg
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-07-21 19:19:18
Message-ID: 20070721191918.GA7289 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

Hi,

Is there a way to influence the order of the visit_node calls in this
visit_scope function?

  void default_visitor::visit_scope(scope_ast *node)
  {
    visit_node(node->func_args);
    visit_node(node->scope_body);
    visit_node(node->or_op);
  }

The rule is this:

   func_args=function_args ( scope_body=scope_body | or_op=or_op scope_body=scope_body | 0 )
   | ( or_op=or_op | 0 ) scope_body=scope_body
-> scope ;;

I'd like to have the or_op visited first, then the func_args and then
the scope_body.

Andreas

-- 
You will be misunderstood by everyone.

_______________________________________________
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