diff --git a/src/main/java/org/jcnc/snow/common/Mode.java b/src/main/java/org/jcnc/snow/common/Mode.java new file mode 100644 index 0000000..f8ee663 --- /dev/null +++ b/src/main/java/org/jcnc/snow/common/Mode.java @@ -0,0 +1,20 @@ +package org.jcnc.snow.common; + +/** + * 程序的运行/调试模式枚举。 + * + */ +public enum Mode { + /** + * 运行模式。 + */ + RUN, + + /** + * 调试模式。 + */ + DEBUG +} diff --git a/src/main/java/org/jcnc/snow/vm/engine/VMMode.java b/src/main/java/org/jcnc/snow/vm/engine/VMMode.java deleted file mode 100644 index a378ef7..0000000 --- a/src/main/java/org/jcnc/snow/vm/engine/VMMode.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.jcnc.snow.vm.engine; - -/** - * The VMMode enum defines the different operational modes of the virtual machine. - *

This class is used to distinguish the behavior of the virtual machine in different states, with each mode corresponding to a different operational logic.

- */ -public enum VMMode { - /** - * Run Mode: The virtual machine executes instructions in the normal execution flow. - *

In this mode, the virtual machine processes instructions and performs related calculations.

- */ - RUN, - - /** - * Debug Mode: The virtual machine outputs debug information during execution. - *

This mode is used for debugging the virtual machine, allowing developers to view detailed information such as the execution state, local variables, and more.

- */ - DEBUG, -}