How to Implement a Ruby Hash Like Grammar in Parslet, Part 1

Before you can understand how to build a parser using parslet, you need to understand why you might want to. In my case, I have a library called rundoc, it allows anyone to write documentation that can be “run." For example, someone might write docs that had this:
:::>> $ rails -v
Then in your documentation output, you would get this result: