IMO we should have a very brief description
how does Lua/uBasic look like with a 2-3 examples, not the real documentation. Something like:
-----------------------------------------
Lua language style- Commands in lua have folowing syntax: command(parameters).
- At the end of line no marker is needed (no ";" like in C, PHP, Java).
- Block of code starts wit appropriate command and ends with 'end' keyword.
- Comments start with -- (two 'minus' signs).
Example code in Lua:
-- This is an example program in Lua
-- And these are two lines of comment
print("Hello World!!!") --print a comment in console
a=1
b=3
if (a~=b) then -- we check here whether 1=3
print("one it's not three") -- it's not, so let say that
print("huh?")
end -- end of the block
-----------------------------------------
And that's enough description, maybe with more examples. Example code says much more than 1000 words. Then we should have command description in other pages, where each command should have information, whether it is accessible from uBasic or Lua only. I mean this format is good:
http://chdk.wikia.com/wiki/Script_commands_stubThis way anybody that need for example take a shoot with Lua will find this in commands stuff. Basic knowledge of the Lua (uBasic) style will be enough to write a program, that takes a shoot. And do anything you like.
I'm not a programmer, I had no idea about Lua before I met CHDK. But Google was enough to find appropriate commands (and sometimes ask on forum). I know Lua syntax not from the manual but from examples. And after not very long time I was able to write a text editor in Lua
So maybe brief description of the syntax with clear description of each command will be the best way?