aoc2017-0.1.0.0: Advent of Code 2017 - my answers

Safe HaskellNone
LanguageHaskell2010

Day25

Description

 

Synopsis

Documentation

data State Source #

The state of the the Turing machine.

Constructors

A 
B 
C 
D 
E 
F 

data Program state value Source #

The setup for a run of a Turing machine.

Constructors

Program 

Fields

  • start :: state

    Initial state of the Turing machine.

  • steps :: Int

    Number of cycles to run the Turing machine.

  • table :: Table Array state value

    State transitions.

parseProgram :: (Ix state, Read state, Ix value, Num value, Read value) => ReadP (Program state value) Source #

Parses a description to a Program.