RequestType.py revision 9104
19104Shestness@cs.utexas.edu# Copyright (c) 2010 Advanced Micro Devices, Inc. 29104Shestness@cs.utexas.edu# All rights reserved. 39104Shestness@cs.utexas.edu# 49104Shestness@cs.utexas.edu# Redistribution and use in source and binary forms, with or without 59104Shestness@cs.utexas.edu# modification, are permitted provided that the following conditions are 69104Shestness@cs.utexas.edu# met: redistributions of source code must retain the above copyright 79104Shestness@cs.utexas.edu# notice, this list of conditions and the following disclaimer; 89104Shestness@cs.utexas.edu# redistributions in binary form must reproduce the above copyright 99104Shestness@cs.utexas.edu# notice, this list of conditions and the following disclaimer in the 109104Shestness@cs.utexas.edu# documentation and/or other materials provided with the distribution; 119104Shestness@cs.utexas.edu# neither the name of the copyright holders nor the names of its 129104Shestness@cs.utexas.edu# contributors may be used to endorse or promote products derived from 139104Shestness@cs.utexas.edu# this software without specific prior written permission. 149104Shestness@cs.utexas.edu# 159104Shestness@cs.utexas.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 169104Shestness@cs.utexas.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 179104Shestness@cs.utexas.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 189104Shestness@cs.utexas.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 199104Shestness@cs.utexas.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 209104Shestness@cs.utexas.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 219104Shestness@cs.utexas.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 229104Shestness@cs.utexas.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 239104Shestness@cs.utexas.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 249104Shestness@cs.utexas.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 259104Shestness@cs.utexas.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 269104Shestness@cs.utexas.edu 279104Shestness@cs.utexas.edufrom slicc.symbols.Symbol import Symbol 289104Shestness@cs.utexas.edu 299104Shestness@cs.utexas.educlass RequestType(Symbol): 309104Shestness@cs.utexas.edu def __repr__(self): 319104Shestness@cs.utexas.edu return "[RequestType: %s]" % self.ident 329104Shestness@cs.utexas.edu 339104Shestness@cs.utexas.edu__all__ = [ "RequestType" ] 34