RFC-3986 URI parser written in C with FSM
Sep 7th, 2010 by Adam
Recently, I was working on a Finite State Machine library in C for a couple of complex parsing tasks. Trying to come up with examples, I decided that a URI parser (following the standardized URI format found in RFC 3986) would be a good test, as well as an easy test for other people to try out. Try entering a URI below, and see what happens!
All of the FSM code as well as the different examples (uri parsing, date parsing, etc) are all available at the GitHub project page. Below, you can test the URI parser and take a look at the output. If you notice a bug, please, leave a comment!
This code is memory-leak free (tested via valgrind). I haven’t licensed it yet, so send me an email if you want to use any piece of my FSM project in your own code.
Hey what license is this code under?
I would like to use some of it but I don’t use stuff that has no explicit license please advice …
This code doesn’t have an explicit license yet, but in your case, I am willing to release it into the public domain, with the only term being that my name is placed somewhere in a comment or acknowledgements file. Thanks for asking first!