rrthomas / mit

A simple stack-based VM
Other
10 stars 3 forks source link

Use int_extractor #278

Closed apt1002 closed 5 years ago

apt1002 commented 5 years ago

instruction.Instruction has a property value that breaks the contract for an Enum. This was done to assist with code_util.enum_to_python(). Instead, use the new int_extractor parameter of that function.

rrthomas commented 5 years ago

Fixed in #257.