MCPcopy Create free account
hub / github.com/ActiveState/code / engine

Function engine

recipes/Python/578366_The_Normal_Cow/recipe-578366.py:79–86  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

77 print
78
79def engine(code):
80 global REG
81 REG = None
82 mem = MEM()
83 cod = COD(code)
84 ins = cod.get()
85 while True:
86 ins = run(mem, cod, ins)
87
88def run(mem, cod, ins):
89 global REG

Callers 1

mainFunction · 0.70

Calls 4

getMethod · 0.95
MEMClass · 0.70
CODClass · 0.70
runFunction · 0.70

Tested by

no test coverage detected