Synopsis - Synopsis/Processors/TypeMapper.py

File: Synopsis/Processors/TypeMapper.py

     1#
     2# Copyright (C) 2003 Stefan Seefeld
     3# All rights reserved.
     4# Licensed to the public under the terms of the GNU LGPL (>= 2),
     5# see the file COPYING for details.
     6#
     7
     8from Synopsis.Processor import Processor, Parameter
     9from Synopsis import ASG
    10
    11class TypeMapper(Processor, ASG.Visitor):
    12   """Base class for type mapping"""
    13
    14   def process(self, ir, **kwds):
    15
    16      self.set_parameters(kwds)
    17      self.ir = self.merge_input(ir)
    18
    19      for type in self.ir.asg.types.values():
    20         type.accept(self)
    21
    22      return self.output_and_return_ir()
    23
    24

Generated on Thu Apr 16 16:27:12 2009 by
synopsis (version devel)