SymbolTable.py (10985:d87a25259254) | SymbolTable.py (11283:4cc8b312f026) |
---|---|
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; --- 27 unchanged lines hidden (view full) --- 36 def __init__(self, slicc): 37 self.slicc = slicc 38 39 self.sym_vec = [] 40 self.sym_map_vec = [ {} ] 41 self.machine_components = {} 42 43 pairs = {} | 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; --- 27 unchanged lines hidden (view full) --- 36 def __init__(self, slicc): 37 self.slicc = slicc 38 39 self.sym_vec = [] 40 self.sym_map_vec = [ {} ] 41 self.machine_components = {} 42 43 pairs = {} |
44 pairs["enumeration"] = "yes" 45 location = Location("init", 0, no_warning=not slicc.verbose) 46 MachineType = Type(self, "MachineType", location, pairs) 47 self.newSymbol(MachineType) 48 49 pairs = {} | |
50 pairs["primitive"] = "yes" 51 pairs["external"] = "yes" 52 location = Location("init", 0, no_warning=not slicc.verbose) 53 void = Type(self, "void", location, pairs) 54 self.newSymbol(void) 55 56 def __repr__(self): 57 return "[SymbolTable]" # FIXME --- 122 unchanged lines hidden --- | 44 pairs["primitive"] = "yes" 45 pairs["external"] = "yes" 46 location = Location("init", 0, no_warning=not slicc.verbose) 47 void = Type(self, "void", location, pairs) 48 self.newSymbol(void) 49 50 def __repr__(self): 51 return "[SymbolTable]" # FIXME --- 122 unchanged lines hidden --- |