I wrote a function that implements 'match' in Python. It is not implemented the same way, since Python doesn't have gotos :), but it is quite fast, especially the Cython version. Take a look and see if you can find bugs :)
http://www.artfulcode.net/projects/matching/
Quote from: "Jeff"
since Python doesn't have gotos :)
Python doesn't have gotos??? Python does have everything (//http)!!! Well, at least as a Fool Day's joke (but it works nevertheless). ;-)