State.py (6657:ef5fae93a3b2) | State.py (10964:2b4fe083d17b) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 16 unchanged lines hidden (view full) --- 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28from slicc.symbols.Symbol import Symbol 29 30class State(Symbol): 31 def __repr__(self): 32 return "[State: %s]" % self.ident | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 16 unchanged lines hidden (view full) --- 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28from slicc.symbols.Symbol import Symbol 29 30class State(Symbol): 31 def __repr__(self): 32 return "[State: %s]" % self.ident |
33 def isWildcard(self): 34 return False |
|
33 | 35 |
36class WildcardState(State): 37 def __repr__(self): 38 return "[State: *]" 39 def isWildcard(self): 40 return True 41 |
|
34__all__ = [ "State" ] | 42__all__ = [ "State" ] |