InPortDeclAST.py (11049:dfb0aa3f0649) InPortDeclAST.py (11095:12c36d719139)
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;

--- 44 unchanged lines hidden (view full) ---

53 code = self.slicc.codeFormatter()
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
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;

--- 44 unchanged lines hidden (view full) ---

53 code = self.slicc.codeFormatter()
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 self.pairs["buffer_expr"] = self.var_expr
61 in_port = Var(self.symtab, self.ident, self.location, type, str(code),
62 in_port = Var(self.symtab, self.ident, self.location, type, str(code),
62 self.pairs, machine, self.var_expr)
63 self.pairs, machine)
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:

--- 56 unchanged lines hidden ---
64 symtab.newSymbol(in_port)
65
66 symtab.pushFrame()
67 param_types = []
68
69 # Check for Event
70 type = symtab.find("Event", Type)
71 if type is None:

--- 56 unchanged lines hidden ---