| Andreas Rozek |
|
Lua_00 - ein erstes einfaches Lua-Skript"Lua_00" demonstriert den Aufruf eines Lua-Skriptes und überprüft die ordnungsgemäße Übergabe evtl. Kommandozeilen-Argumente an dieses Skript. Das Programm ist äußerst einfach und bedarf keiner weiteren Erläuterung. Nach einem Aufruf der Form lua Lua_00.lua one_word "multiple words" "multiple words with \" in between" liefert das Programm folgende Ausgabe: Lua_00 - lists the given command line arguments
got 4 arguments:
1) "Lua_00.lua"
2) "one_word"
3) "multiple words"
4) "multiple words with " in between"
Ohne irgendwelche Parameter aufgerufen lua Lua_00.lua erscheint lediglich: Lua_00 - lists the given command line arguments
got one argument:
1) "Lua_00.lua"
QuelltextDas Programm steht im Quelltext zur Verfügung:
Literaturhinweise
|
| http://www.Andreas-Rozek.de/Lua/Acquainting/Lua_00.html | (letzter Stand: 14.04.2002) |