[Synopsis-changes] Synopsis/Synopsis/Synopsis/Processors TypeMapper.py,NONE,1.1
Stefan Seefeld stefan at synopsis.fresco.orgWed Nov 19 16:21:41 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/demo Makefile,1.5,1.6
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Processors __init__.py,1.4,1.5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/Synopsis/Processors
In directory frida:/tmp/cvs-serv14481/Synopsis/Processors
Added Files:
TypeMapper.py
Log Message:
new base class for type mapping extensions
--- NEW FILE: TypeMapper.py ---
# $Id: TypeMapper.py,v 1.1 2003/11/19 16:21:39 stefan Exp $
#
# Copyright (C) 2003 Stefan Seefeld
# All rights reserved.
# Licensed to the public under the terms of the GNU LGPL (>= 2),
# see the file COPYING for details.
#
from Synopsis.Processor import Processor, Parameter
from Synopsis import AST, Type, Util
import string
class TypeMapper(Processor, Type.Visitor):
"""Base class for type mapping"""
def process(self, ast, **kwds):
self.set_parameters(kwds)
self.ast = self.merge_input(ast)
for type in self.ast.types().values():
type.accept(self)
return self.output_and_return_ast()
- Previous message: [Synopsis-changes] Synopsis/Synopsis/demo Makefile,1.5,1.6
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Processors __init__.py,1.4,1.5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list