I’ve been trying to understand the Parser module, and hitting difficulties with the loop concept. In particular, I asked myself how I would implement a simple Markdown parser with * for bold and _ for italic only. They could appear multiple times in a string, could be nested legally or illegally.
I’ve implemented this using a non-Parser solution, but I figure using Parser would be simpler and more elegant. But I can’t get the concept of how to do this, even after reading several examples of Parser in action.
Can anyone point me towards a solution to this?