Because the Luan documentation is poor, I suggest that you get the Luan source for reference. You should be able to build it with luan/scripts/build-luan.sh . This should install Luan. To look at source, go to luan/src/luan/modules . Then look at some of *.luan and *.java . You should be able to follow most of it. If you have questions, you can Skype me.