Few tips mager, writing scripting language is not so hard, few algorithms, google or parsing knowledge and ready to write xD, tho function creating is for engine's that get adapted for your game/program/server/core, lua can be used for programing if you make stuff like Console:WriteLine(.) or String.Contains(.). I was thinking of creating small scripting(really small with few commands) language.