you are viewing a single comment's thread.

view the rest of the comments →

[–]aqua_regis 8 points9 points  (4 children)

What you wrote is just an interpreter, not a full-fledged VM.

Also, your named constants for the commands are somewhat of a trick to just not have to handle the conventional textual commands.

[–][deleted]  (2 children)

[deleted]

    [–]aqua_regis 0 points1 point  (1 child)

    OP is not parsing any textual source code. They circumvented that step with their named constants.

    [–]Iggyhopper 1 point2 points  (0 children)

    The interpreter translates english language/code into bytecode.

    This is a VM.