User:Gaoxia: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Gaoxia (talk | contribs)
No edit summary
 
Gaoxia (talk | contribs)
No edit summary
Line 1: Line 1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>lua-users wiki: Tutorial Directory</TITLE>
<LINK TYPE="text/css" REL="stylesheet" HREF="/styles/main.css">
</HEAD>
<BODY ><table width="100%" border="0"> <tr><td align=left width="100%"><h1><a href="/cgi-bin/wiki.pl?action=search&amp;string=TutorialDirectory&amp;body=1" title="List pages referring to TutorialDirectory">Tutorial Directory</a></h1></td><td align=right>
<table cellpadding="0" cellspacing="0" border="0" width="1%">
<tbody>
<tr>
<td><a href="/">
<img src="/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td>

</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td><img src="/images/nav-elbow.png" alt="" width="48" height="40"></td>
<td nowrap valign="middle" width="100%">
<a href="/wiki/" class="nav">wiki</a></td>

</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr> </table>
<br clear=all>

You can find more about this page in <a href="/wiki/LuaTutorial" >LuaTutorial</a>. It is suggested you read the topics from top to bottom, as they increase in complexity. <a href="/wiki/TutorialExamples" >TutorialExamples</a> explains how the examples have been created and you can follow them. The tutorial is written for the current version of Lua, version 5.0. The <a href="/wiki/LuaShortReference" >LuaShortReference</a> is a useful helper. If you would like to make any comments about the tutorial please do so on the <a href="/wiki/TutorialComments" >TutorialComments</a> page (or contact the primary author <a href="/wiki/NickTrout" >NickTrout</a>).
<p>
<UL>
<li> Introductory topics.

<UL>
<li> <a href="/wiki/LuaTypesTutorial" >LuaTypesTutorial</a> - A gentle introduction to variable types used in Lua.
<li> <a href="/wiki/AssignmentTutorial" >AssignmentTutorial</a> - More on setting variable values.
<li> <a href="/wiki/NumbersTutorial" >NumbersTutorial</a> - The Lua number type and related functions.
<li> <a href="/wiki/StringsTutorial" >StringsTutorial</a> - String (text) usage and related functions.

<li> <a href="/wiki/TablesTutorial" >TablesTutorial</a> - Lua tables (arrays) and related functions.
<li> <a href="/wiki/ExpressionsTutorial" >ExpressionsTutorial</a> - Performing calculations.
</UL>
</UL>
<p>
<UL>
<li> Programming in Lua.
<UL>
<li> <a href="/wiki/FunctionsTutorial" >FunctionsTutorial</a> - Introduction to functions.

<li> <a href="/wiki/ControlStructureTutorial" >ControlStructureTutorial</a> - Keywords <code>if</code>, <code>while</code>, <code>repeat</code>, <code>for</code>, <code>break</code>.
<li> <a href="/wiki/ForTutorial" >ForTutorial</a> - Detail on the <code>for</code> statement.

<li> <a href="/wiki/FunctionCallTutorial" >FunctionCallTutorial</a> - Passing arguments and returning values.
<li> <a href="/wiki/ScopeTutorial" >ScopeTutorial</a> - Rules about where variables live and the <code>local</code> keyword.
</UL>
</UL>
<p>
<UL>
<li> Lua standard libraries - Brief explanation and examples of usage of each.

<UL>
<li> <a href="/wiki/CoreFunctionsTutorial" >CoreFunctionsTutorial</a> - Basic functions e.g. <code>dofile</code>, <code>assert</code>, <code>error</code>, etc.
<li> <a href="/wiki/MathLibraryTutorial" >MathLibraryTutorial</a>
<li> <a href="/wiki/StringLibraryTutorial" >StringLibraryTutorial</a> - (text)

<li> <a href="/wiki/TableLibraryTutorial" >TableLibraryTutorial</a> - (arrays)
<li> <a href="/wiki/IoLibraryTutorial" >IoLibraryTutorial</a>
<li> <a href="/wiki/OsLibraryTutorial" >OsLibraryTutorial</a>
<li> <a href="/wiki/DebugLibraryTutorial" >DebugLibraryTutorial</a>
</UL>
</UL>
<p>
<UL>

<li> More advanced Lua concepts.
<UL>
<li> <a href="/wiki/IteratorsTutorial" >IteratorsTutorial</a> - Writing custom <code>for</code> iterators.
<li> <a href="/wiki/PatternsTutorial" >PatternsTutorial</a> - String searching.
<li> <a href="/wiki/GarbageCollectionTutorial" >GarbageCollectionTutorial</a> - What happens to deleted objects?

<li> <a href="/wiki/CoroutinesTutorial" >CoroutinesTutorial</a> - Multiple functions running at the same time.
<li> <a href="/wiki/ThreadsTutorial" >ThreadsTutorial</a> - Using Lua in a pre-emptive threading environment.
<li> OptimisationTutorial<a href="/cgi-bin/wiki.pl?action=edit&amp;id=OptimisationTutorial" >?</a> - Notes on getting good performance from Lua.
</UL>
</UL>
<p>
<UL>

<UL>
<li> <a href="/wiki/WeakTablesTutorial" >WeakTablesTutorial</a> - Special table mode where elements are weak references.
<li> EnvironmentsTutorial<a href="/cgi-bin/wiki.pl?action=edit&amp;id=EnvironmentsTutorial" >?</a> - Lua's global namespace mechanism.
<li> <a href="/wiki/MetamethodsTutorial" >MetamethodsTutorial</a> - Lua's powerful extension mechanism.
<li> <a href="/wiki/ObjectOrientationTutorial" >ObjectOrientationTutorial</a> - An introduction to simulating classes.

<li> <a href="/wiki/InheritanceTutorial" >InheritanceTutorial</a> - A technique for implementing OO inheritance in Lua.
</UL>
</UL>
<p>
<p>
<em>I'd like us to deal with the C API in a separate section. Also, I think the API should be dealt with in a more methodical manner. The code donated is more of a sample than a tutorial about the API. --NDT</em>
<p>
<em>Fair enough -- but I couldn't find anywhere else to put the binding enums example. Please feel free to reorganize. -- <a href="/wiki/RiciLake" >RiciLake</a></em>
<p>
<UL>
<li> C API

<UL>
<li> <a href="/wiki/CppLuaDataPassingTutorial" >CppLuaDataPassingTutorial</a> - Example app illustrating how to pass data into a lua script from C++, and how to return data back to C++
<li> <a href="/wiki/CppLuaArgumentPassingTutorial" >CppLuaArgumentPassingTutorial</a> - Example code illustrating how to pass data between a C++ and a lua script.
<li> <a href="/wiki/SimpleLuaApiExample" >SimpleLuaApiExample</a> - A simple example of how to interface Lua from C.
<li> <a href="/wiki/BindingEnumsToLua" >BindingEnumsToLua</a> - A technique for synchronizing C enums with a Lua API.

<li> <a href="/wiki/BuildingModules" >BuildingModules</a> - How to properly build C extension modules for Lua.
</UL>
</UL>
<p>
Including the various tutorials, there is also lots <a href="/wiki/SampleCode" >SampleCode</a> available which explains the use of Lua in more detail and in practical applications.
<hr>
<a href="/wiki/FindPage" >FindPage</a> &middot; <a href="/wiki/RecentChanges" >RecentChanges</a> &middot; <a href="/cgi-bin/wiki.pl?action=editprefs" >preferences</a><br>

<a href="/cgi-bin/wiki.pl?action=edit&amp;id=TutorialDirectory" >edit</a> &middot; <a href="/cgi-bin/wiki.pl?action=history&amp;id=TutorialDirectory" >history</a><br>Last edited September 2, 2005 12:58 am GMT <a href="/cgi-bin/wiki.pl?action=browse&amp;diff=1&amp;id=TutorialDirectory" >(diff)</a></body></html>

Revision as of 21:29, 11 October 2005