Skip to content

Commit

Permalink
Mixed input is now allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
wheatwizard committed Jul 5, 2017
1 parent 2ecd2a7 commit 43397d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Interpreter.hs
Expand Up @@ -43,8 +43,8 @@ xbf ('{':a) t = xbf (exterior a) (xrun (interior a) t)
xbf (_:a) t = xbf a t

xrun :: [Char] -> ([Integer],[Integer],[Integer],Int) -> ([Integer],[Integer],[Integer],Int)
xrun s ([],y,z,c) = ([],y,z,c)
xrun s (0:x,y,z,c) = (0:x,y,z,c)
xrun s ([],y,z,c) = ([],y,z,c+2)
xrun s (0:x,y,z,c) = (0:x,y,z,c+2)
xrun s (x,y,z,c) = xrun s (xbf s (x,y,z,c+2))

bl :: [Char] -> [Char] -> Bool
Expand Down

0 comments on commit 43397d3

Please sign in to comment.