merge
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Wed, 18 Jun 2008 06:28:27 +0000 (23:28 -0700)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Wed, 18 Jun 2008 06:28:27 +0000 (23:28 -0700)
1  2 
Cython/Compiler/Main.py
Cython/Compiler/Nodes.py
Cython/Compiler/Parsing.py

index b5292dc9cc1c710afd5d633c3ad9fefde6561e62,4230814b39ee2387e27c0fee137fe1c66646439c..9b058f9a4858fd28bcfa48038d17182efc502e83
@@@ -316,14 -225,17 +316,17 @@@ class Context
                  c_stat = os.stat(result.c_file)
              except EnvironmentError:
                  pass
 -        module_name = full_module_name # self.extract_module_name(source, options)
 +        full_module_name = full_module_name or self.extract_module_name(source, options)
          source = FileSourceDescriptor(source)
          initial_pos = (source, 1, 0)
 -        scope = self.find_module(module_name, pos = initial_pos, need_pxd = 0)
 +        scope = self.find_module(full_module_name, pos = initial_pos, need_pxd = 0)
          errors_occurred = False
          try:
 -            tree = self.parse(source, scope.type_names, pxd = 0, full_module_name = full_module_name)
 -            # This is of course going to change and be refactored real soon
 +            tree = self.parse(source, scope, pxd = 0,
 +                              full_module_name = full_module_name)
+             from ParseTreeTransforms import WithTransform, PostParse
+             tree = PostParse()(tree)
+             tree = WithTransform()(tree)
              tree.process_implementation(scope, options, result)
          except CompileError:
              errors_occurred = True
index 1e87f7a6d9de6f908330f45f24e9f8937b2b14c0,f9c99ae6388386f2e021f31069abe188b20b5329..dd88dd6bc4233963828f66bb3324f61faf1cd1c1
@@@ -2356,8 -2414,7 +2356,8 @@@ class InPlaceAssignmentNode(AssignmentN
      #  Fortunately, the type of the lhs node is fairly constrained 
      #  (it must be a NameNode, AttributeNode, or IndexNode).     
      
-     child_attrs = ["lhs", "rhs", "dup"]
+     child_attrs = ["lhs", "rhs"]
 +    dup = None
  
      def analyse_declarations(self, env):
          self.lhs.analyse_target_declaration(env)
@@@ -2991,8 -2998,7 +2991,8 @@@ class ForInStatNode(LoopNode, StatNode)
      #  else_clause   StatNode
      #  item          NextNode       used internally
      
-     child_attrs = ["target", "iterator", "body", "else_clause", "item"]
+     child_attrs = ["target", "iterator", "body", "else_clause"]
 +    item = None
      
      def analyse_declarations(self, env):
          self.target.analyse_target_declaration(env)
Simple merge