mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-08 18:13:34 +08:00
parent
d22eefc13e
commit
6dc510a976
@ -19,9 +19,6 @@ from .transforms import ASTTypedRewriter, Inferencer, IntMonomorphizer
|
|||||||
from .transforms.asttyped_rewriter import LocalExtractor
|
from .transforms.asttyped_rewriter import LocalExtractor
|
||||||
|
|
||||||
|
|
||||||
def coredevice_print(x): print(x)
|
|
||||||
|
|
||||||
|
|
||||||
class ObjectMap:
|
class ObjectMap:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.current_key = 0
|
self.current_key = 0
|
||||||
@ -325,7 +322,7 @@ class StitchingASTTypedRewriter(ASTTypedRewriter):
|
|||||||
else:
|
else:
|
||||||
# Try to find this value in the host environment and quote it.
|
# Try to find this value in the host environment and quote it.
|
||||||
if node.id == "print":
|
if node.id == "print":
|
||||||
return self.quote(coredevice_print, node.loc)
|
return self.quote(print, node.loc)
|
||||||
elif node.id in self.host_environment:
|
elif node.id in self.host_environment:
|
||||||
return self.quote(self.host_environment[node.id], node.loc)
|
return self.quote(self.host_environment[node.id], node.loc)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user