HPI.py (13432:6ce67b7e6e44) | HPI.py (13731:67cd980cb20f) |
---|---|
1# Copyright (c) 2014-2017 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 163 unchanged lines hidden (view full) --- 172 173 # Make the sub-expression as null to start with 174 for name, binding in bindings: 175 new_env[name] = i 176 i += 1 177 178 defns = [] 179 # Then apply them to the produced new env | 1# Copyright (c) 2014-2017 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 163 unchanged lines hidden (view full) --- 172 173 # Make the sub-expression as null to start with 174 for name, binding in bindings: 175 new_env[name] = i 176 i += 1 177 178 defns = [] 179 # Then apply them to the produced new env |
180 for i in xrange(0, len(bindings)): | 180 for i in range(0, len(bindings)): |
181 name, binding_expr = bindings[i] 182 defns.append(binding_expr(new_env)) 183 184 ret.defns = defns 185 ret.expr = expr(new_env) 186 187 return ret 188 return body --- 1268 unchanged lines hidden --- | 181 name, binding_expr = bindings[i] 182 defns.append(binding_expr(new_env)) 183 184 ret.defns = defns 185 ret.expr = expr(new_env) 186 187 return ret 188 return body --- 1268 unchanged lines hidden --- |