here you go. in the sample program you can open a console with tab and enter some lua code. i created a sample lua function create_cube(x,y,z), which creates a cube at a given position (o rly? ya rly.)
for more information take a look at the official lua and luajit documentations