gensearch is a python script that generates C functions that match tokens from a defined set.
For more information, see this blog post
current version