No, I haven’t reverted to my ancestors’ tongue.* Sprache is a small library for parsing text from C#.
var parseA = Parse.Char('A').AtLeastOnce();
If you’ve spent any time with Haskell, you’ll be familiar with Parsec, a beautiful framework for building parsers in a functional manner.
Sprache is based on the same design (yes, the ‘m’ word applies here) ported to C# with some help from a couple of excellent tutorials.
I built Sprache as a learning exercise, but posted it to Google Code because there seems to be no other implementation with controlled source, an issue tracker, and a well-defined license. It could use some input from someone who really knows their stuff, so hopefully the public site will help find that person.
Check out the Sprache homepage for some examples and links.
*’Sprache C#’ as far as my limited German takes me, means ‘C# Language’.
Nice work mate! FYI – The last few posts have not been formatted very nicely in good reader.
[...] Sprache C# (Nicholas Blumhardt) [...]
Thanks for letting me know John, I’ll see what I can figure out…
Don’t ya just love Parsec (and Haskell
).
Thanks for the link mate. I had no idea this puppy existed.
So what’s the goal of this lib mate? Do you have a roadmap for this puppy?
Are you open to having other people contribute? This is the kind of thing that I’m interested in
So if you want, I don’t mind helping out?
Awesome! If it wasn’t 11 pm, I’d already be on the phone!
It’s a bit late for me to gather my thoughts, let’s talk tomorrow.
Gut gemacht!