https://gist.github.com/sbromberger/8c8edfc808a7f2f091a9
via https://github.com/andrewcooke/ParserCombinator.jl/issues/5
