![]() |
Programming in Lua | ![]() |
Part I. The Language Chapter 10. Complete Examples |
To end this introduction about the language, we show two complete programs that illustrate different facilities of Lua. The first example is a real program from the Lua site; it illustrates the use of Lua as a data description language. The second example is an implementation of the Markov chain algorithm, described by Kernighan & Pike in their book The Practice of Programming (Addison-Wesley, 1999).
Copyright © 2003-2004 Roberto Ierusalimschy. All rights reserved. |
![]() |
![]() |