robrix/Hammer.swift — pull request #9 by robrix (2014-07-06 01:36:16+00:00)
Title: Parse forest types

- parse forests are binary trees with ambiguities represented explicitly as Choice nodes.
- (`List` considered pointless)
- repetitions’ parse forests make at least some tiny iota of sense
- soon: concatenations’ parse forests are the cartesian product of their parsers’ parse forests
- soon: reductions → ƒ have a real return type, not this `Any` nonsense