Parser Combinator Example

Sample/Instructive C# Code
C#
GitHub Gist

What It Is

An example of a simple parser combinator that can be used to understand the theory

Status

Last Reviewed:

Works fine for learning, but it’s not meant for production.

Details

This is sample code showing a very simple parser combinator. I wrote this when I was trying to understand Parlot – I was working with Sebastien Ros on it, and I wrote this to make sure I understood the theory behind it.

You can follow the code there, and I also have the start of some Parlot documentation that might help as hell.