I don't know a word about LUA; but looks like you wrote the mib implementation _by_ hand.
I mean, without a mib compiler that does all the diry work giving you a skeleton where you can build the logic.<p>Is it true?<p>Anyway, it is really interesting :-)