packages feed

brainfuck-tut 0.6.0.1 → 0.7.0.0

raw patch · 6 files changed

+11/−1 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Language.Brainfuck.Types: OutDP :: Term

Files

README.md view
@@ -15,6 +15,7 @@ data Term   = IncDP        -- >   | DecDP        -- <+  | OutDP        -- ?   | IncByte      -- +   | DecByte      -- -   | OutByte      -- .
brainfuck-tut.cabal view
@@ -1,5 +1,5 @@ name:                brainfuck-tut-version:             0.6.0.1+version:             0.7.0.0 synopsis:            A simple BF interpreter. license:             BSD3 license-file:        LICENSE
changelog.md view
@@ -1,3 +1,9 @@+0.7.0.0++* added support for '?' command+    * this breaks compatibility with programs that use ? as a comment+      character+ 0.6.0.1  * update the changelog
src/Language/Brainfuck/Eval.hs view
@@ -70,6 +70,7 @@         step tape (o:ops) os pos pc jp jpr = case o of           IncDP -> step tape ops os (pos+1) (next pc) jp jpr           DecDP -> step tape ops os (pos-1) (next pc) jp jpr+          OutDP -> print pos >> step tape ops os pos (next pc) jp jpr           IncByte -> step (modAt tape pos (+1)) ops os pos (next pc) jp jpr           DecByte -> step (modAt tape pos (subtract 1)) ops os pos (next pc) jp jpr           OutByte -> showAt tape pos >> step tape ops os pos (next pc) jp jpr
src/Language/Brainfuck/Parse.hs view
@@ -21,6 +21,7 @@ parse (x:xs) = case x of   '>' -> IncDP : parse xs   '<' -> DecDP : parse xs+  '?' -> OutDP : parse xs   '+' -> IncByte : parse xs   '-' -> DecByte : parse xs   '.' -> OutByte : parse xs
src/Language/Brainfuck/Types.hs view
@@ -34,6 +34,7 @@ data Term   = IncDP        -- ^ \>   | DecDP        -- ^ <+  | OutDP        -- ^ ?   | IncByte      -- ^ +   | DecByte      -- ^ \-   | OutByte      -- ^ .