I already did a lot of things
This commit is contained in:
commit
cbccc8253b
15 changed files with 719 additions and 0 deletions
14
src/Language/Brainfuck/Instruction.hs
Normal file
14
src/Language/Brainfuck/Instruction.hs
Normal file
|
@ -0,0 +1,14 @@
|
|||
{-# LANGUAGE DerivingStrategies #-}
|
||||
module Language.Brainfuck.Instruction (Instruction(..)) where
|
||||
|
||||
import Data.Vector ( Vector )
|
||||
|
||||
data Instruction
|
||||
= Increment
|
||||
| Decrement
|
||||
| MoveLeft
|
||||
| MoveRight
|
||||
| ReadByte
|
||||
| PutByte
|
||||
| Loop (Vector Instruction)
|
||||
deriving stock (Show, Eq)
|
Loading…
Add table
Add a link
Reference in a new issue