వికీపీడియా:Lua: కూర్పుల మధ్య తేడాలు
Content deleted Content added
imported>Wikid77 +bottom link "WP:Lua requests" for old browsers which cannot access top navbox. |
Dragons flight (చర్చ | రచనలు) →About Lua: don't mention coroutines, we don't support them |
||
పంక్తి 20:
== About Lua ==
[[File:WMF Tech Talk 2013-02-28 slides - Scribunto presentation.pdf|thumbnail|Brad Jorsch’s short presentation for a basic example of how to convert a wikitext template into a Lua module.]]
Lua is a [[scripting language]] which can be used to analyze data, calculate expressions, and format results using functions or [[object-oriented programming]]. Although some Lua script can be kept simple, for easy understanding, Lua allows complex structures which would challenge a [[computer scientist]], with tables, dynamic functions, and [[associative array]]s where index [[subscript]]s can be words as well as index numbers. Lua also supports [[recursion]] of re-nested functions
<syntaxhighlight lang="lua">
function factorial(n)
|