brainfuck-tut-0.6.0.1: A simple BF interpreter.

Copyright(c) Alejandro Cabrera, 2014
LicenseBSD-3
Maintainercpp.cabrera@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
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