LUA might be good for this too, it's pretty fast on it's own but from what I've read (not tested mind you) their C API is supposed to be pretty great.
http://benchmarksgame.alioth.debian.org/u32/which-programs-a...
http://en.wikipedia.org/wiki/Lua_(programming_language)#C_AP...