brainfuck-tut-0.7.0.2: A simple BF interpreter.

Copyright(c) Allele Dev 2014
LicenseBSD-3
Maintainerallele.dev@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Language.Brainfuck.Parse

Description

 

Synopsis

Documentation

parse :: String -> [Term] Source #

A total function over the BF syntax.

matchJumps :: [Term] -> Either JumpPairs JumpMatchError Source #

Given a list of terms, precomputes jump locations for matching '[' ']' |Respects nesting of '[' and ']' terms.

type JumpPairs = [(Int, Int)] Source #