mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-28 17:19:17 +01:00
17 lines
526 B
Rust
17 lines
526 B
Rust
use materialcraft_core::Value;
|
|
|
|
use super::evaluation_state::LoopCheckpoint;
|
|
|
|
pub(crate) enum EvaluationStep {
|
|
Enter(usize),
|
|
Store(usize),
|
|
Apply { instruction: usize, base: usize },
|
|
Branch { instruction: usize, prefix: bool },
|
|
Prefix(usize),
|
|
Discard,
|
|
Sequence(usize),
|
|
LoopStart(usize),
|
|
LoopCondition { instruction: usize, iteration: u32, last: Value, checkpoint: Option<Box<LoopCheckpoint>> },
|
|
LoopBody { instruction: usize, iteration: u32, checkpoint: Option<Box<LoopCheckpoint>> },
|
|
}
|