mirror of https://git.sr.ht/~garritfra/rustfuck
garritfra
4 years ago
4 changed files with 25 additions and 14 deletions
@ -0,0 +1,22 @@
|
||||
#[derive(Debug, Clone)] |
||||
pub enum OpCode { |
||||
Increment, |
||||
Decrement, |
||||
MoveRight, |
||||
MoveLeft, |
||||
Print, |
||||
Read, |
||||
LoopStart, |
||||
LoopEnd, |
||||
} |
||||
|
||||
#[derive(Debug, Clone)] |
||||
pub enum Instruction { |
||||
Increment, |
||||
Decrement, |
||||
MoveRight, |
||||
MoveLeft, |
||||
Print, |
||||
Read, |
||||
Loop(Vec<OpCode>), |
||||
} |
Loading…
Reference in new issue