InPortDeclAST.py (9996:150338b8ba12) | InPortDeclAST.py (10963:51f40b101a56) |
---|---|
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; --- 45 unchanged lines hidden (view full) --- 54 queue_type = self.var_expr.generate(code) 55 if not queue_type.isInPort: 56 self.error("The inport queue's type must have the 'inport' " + \ 57 "attribute. Type '%s' does not have this attribute.", 58 queue_type) 59 60 type = self.queue_type.type 61 in_port = Var(self.symtab, self.ident, self.location, type, str(code), | 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; --- 45 unchanged lines hidden (view full) --- 54 queue_type = self.var_expr.generate(code) 55 if not queue_type.isInPort: 56 self.error("The inport queue's type must have the 'inport' " + \ 57 "attribute. Type '%s' does not have this attribute.", 58 queue_type) 59 60 type = self.queue_type.type 61 in_port = Var(self.symtab, self.ident, self.location, type, str(code), |
62 self.pairs) | 62 self.pairs, machine, self.var_expr) |
63 symtab.newSymbol(in_port) 64 65 symtab.pushFrame() 66 param_types = [] 67 68 # Check for Event 69 type = symtab.find("Event", Type) 70 if type is None: --- 47 unchanged lines hidden --- | 63 symtab.newSymbol(in_port) 64 65 symtab.pushFrame() 66 param_types = [] 67 68 # Check for Event 69 type = symtab.find("Event", Type) 70 if type is None: --- 47 unchanged lines hidden --- |