Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use a modern POD style

  • Loading branch information...
commit 82ba894891759e1d92d8d98a18fcba7c38dcf83d 1 parent 90c1184
@fperrad authored
Showing with 417 additions and 654 deletions.
  1. +5 −7 lua.pir
  2. +4 −6 luac.pl
  3. +4 −6 luac2pir.pir
  4. +4 −6 luad.pir
  5. +3 −5 luap.pir
  6. +4 −5 src/PASTGrammar.tg
  7. +4 −5 src/POSTGrammar.tg
  8. +3 −5 src/dumplex.tg
  9. +3 −5 src/grammar51.pir
  10. +3 −5 src/lib/_helpers.pir
  11. +3 −5 src/lib/alarm.pir
  12. +3 −5 src/lib/base64.pir
  13. +3 −5 src/lib/bc.pir
  14. +4 −4 src/lib/bit.pir
  15. +3 −5 src/lib/bitlib.pir
  16. +3 −5 src/lib/complex.pir
  17. +2 −4 src/lib/gl_binding.pir
  18. +4 −4 src/lib/glut.pir
  19. +3 −5 src/lib/lfs.pir
  20. +9 −11 src/lib/lpeg.pir
  21. +4 −6 src/lib/luaaux.pir
  22. +4 −6 src/lib/luabasic.pir
  23. +2 −4 src/lib/luabytecode.pir
  24. +3 −5 src/lib/luacoroutine.pir
  25. +3 −5 src/lib/luadebug.pir
  26. +3 −5 src/lib/luafile.pir
  27. +3 −5 src/lib/luaio.pir
  28. +2 −4 src/lib/luamath.pir
  29. +3 −5 src/lib/luaos.pir
  30. +3 −5 src/lib/luapackage.pir
  31. +3 −5 src/lib/luaperl.pir
  32. +7 −9 src/lib/luaregex.pir
  33. +3 −5 src/lib/luastring.pir
  34. +3 −5 src/lib/luatable.pir
  35. +3 −5 src/lib/markdown.pir
  36. +4 −4 src/lib/mathx.pir
  37. +3 −5 src/lib/md5.pir
  38. +3 −5 src/lib/random.pir
  39. +3 −5 src/lib/struct.pir
  40. +3 −5 src/lib/uuid.pir
  41. +6 −8 src/lua51.pg
  42. +4 −6 src/lua51.pir
  43. +2 −4 src/lua51_testlex.pg
  44. +3 −5 src/pmc/lua.pmc
  45. +7 −9 src/pmc/luaany.pmc
  46. +5 −7 src/pmc/luaboolean.pmc
  47. +3 −5 src/pmc/luabytecode.pmc
  48. +5 −7 src/pmc/luafunction.pmc
  49. +5 −7 src/pmc/luanil.pmc
  50. +5 −7 src/pmc/luanumber.pmc
  51. +5 −7 src/pmc/luastring.pmc
  52. +5 −7 src/pmc/luatable.pmc
  53. +5 −7 src/pmc/luathread.pmc
  54. +5 −7 src/pmc/luauserdata.pmc
  55. +6 −8 t/Parrot/Test/Lua.pm
  56. +5 −7 t/Parrot/Test/Lua_lex.pm
  57. +5 −7 t/Parrot/Test/Luad.pm
  58. +3 −5 t/alarm.t
  59. +3 −5 t/assign.t
  60. +3 −5 t/base64.t
  61. +3 −5 t/basic.t
  62. +3 −5 t/bc.t
  63. +3 −5 t/bit.t
  64. +3 −5 t/bitlib.t
  65. +3 −5 t/boolean.t
  66. +3 −5 t/closure.t
  67. +3 −5 t/complex.t
  68. +3 −5 t/constructor.t
  69. +3 −5 t/coroutine.t
  70. +3 −5 t/debug.t
  71. +3 −5 t/examples.t
  72. +3 −5 t/expr.t
  73. +3 −5 t/forlist.t
  74. +3 −5 t/fornum.t
  75. +3 −5 t/function.t
  76. +3 −5 t/functions.t
  77. +3 −5 t/gl.t
  78. +5 −7 t/harness
  79. +3 −5 t/if.t
  80. +3 −5 t/io.t
  81. +3 −5 t/iterator.t
  82. +3 −5 t/lexico.t
  83. +3 −5 t/lfs.t
  84. +3 −5 t/lpeg.t
  85. +3 −5 t/luad.t
  86. +3 −5 t/markdown.t
  87. +3 −6 t/math.t
  88. +3 −5 t/mathx.t
  89. +3 −5 t/md5.t
  90. +3 −5 t/metatable.t
  91. +3 −5 t/nil.t
  92. +3 −5 t/number.t
  93. +3 −5 t/object.t
  94. +3 −5 t/os.t
  95. +3 −5 t/package.t
  96. +3 −5 t/pmc/boolean.t
  97. +3 −5 t/pmc/function.t
  98. +3 −5 t/pmc/nil.t
  99. +3 −5 t/pmc/number.t
  100. +3 −5 t/pmc/string.t
  101. +3 −5 t/pmc/table.t
  102. +3 −5 t/pmc/thread.t
  103. +3 −5 t/pmc/userdata.t
  104. +3 −5 t/random.t
  105. +3 −5 t/regex.t
  106. +3 −5 t/repeat.t
  107. +3 −5 t/scope.t
  108. +3 −5 t/sha1.t
  109. +3 −5 t/shootout.t
  110. +3 −5 t/standalone.t
  111. +3 −5 t/string.t
  112. +3 −5 t/strings.t
  113. +3 −5 t/struct.t
  114. +3 −5 t/table.t
  115. +3 −5 t/tables.t
  116. +3 −5 t/test-from-lua.t
  117. +3 −5 t/test_lex.t
  118. +3 −5 t/threads.t
  119. +3 −5 t/userdata.t
  120. +3 −5 t/uuid.t
  121. +3 −5 t/while.t
  122. +3 −5 test_lex.pir
View
12 lua.pir
@@ -1,15 +1,13 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 A stand-alone interpreter for Lua 5.1
-lua.pbc -- A stand-alone interpreter for Lua 5.1
-
-=head1 SYNOPSIS
+=head2 Synopsis
$ parrot lua.pbc [options] [script [args]]
-=head1 DESCRIPTION
+=head2 Description
B<lua> is the stand-alone Lua interpreter. It loads and executes Lua programs.
@@ -55,7 +53,7 @@ command line (but in this case you have to be careful with quotes if the
prompt string contains a space; otherwise you may confuse the shell.) The
default prompts are "> " and ">> ".
-=head1 OPTIONS
+=head2 Options
=over 4
@@ -511,7 +509,7 @@ USAGE
.include 'languages/lua/src/lib/luabytecode.pir'
-=head1 SEE ALSO
+=head2 See Also
F<languages/lua/doc/status.pod>
View
10 luac.pl
@@ -58,15 +58,13 @@
__END__
-=head1 NAME
+=head1 Lua compiler
-luac - Lua compiler
-
-=head1 SYNOPSIS
+=head2 Synopsis
luac [options] I<source>.lua
-=head1 OPTIONS
+=head2 Options
=over 8
@@ -80,7 +78,7 @@ =head1 OPTIONS
=back
-=head1 DESCRIPTION
+=head2 Description
=cut
View
10 luac2pir.pir
@@ -1,19 +1,17 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua 5.1 VM bytecode to Parrot PIR Translator
-luac2pir - Lua 5.1 VM bytecode to Parrot PIR Translator
-
-=head1 SYNOPSYS
+=head2 Synopsis
parrot luac2pir.pir file.luac
-=head1 DESCRIPTION
+=head2 Description
B<luac2pir> translates a Lua 5.1 VM bytecode file to Parrot PIR.
-=head1 SEE ALSO
+=head2 See Also
luad
View
10 luad.pir
@@ -1,19 +1,17 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Disassembler
-luad - Lua Disassembler
-
-=head1 SYNOPSYS
+=head2 Synopsis
parrot luad.pir file.luac
-=head1 DESCRIPTION
+=head2 Description
B<luad> disassembles Lua 5.1 bytecode produced by C<luac>.
-=head1 SEE ALSO
+=head2 See Also
L<http://luaforge.net/projects/chunkspy/>
View
8 luap.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 A compiler for Lua 5.1
-luap -- A compiler for Lua 5.1
-
-=head1 SYNOPSIS
+=head2 Synopsis
$ parrot luap.pir script.lua
$ parrot luap.pir --target=parse script.lua
@@ -13,7 +11,7 @@ luap -- A compiler for Lua 5.1
POST
PIR
-=head1 DESCRIPTION
+=head2 Description
C<luap> is a compiler for Lua 5.1 on Parrot.
View
9 src/PASTGrammar.tg
@@ -1,13 +1,12 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 PGE Parse to PAST
-PASTGrammar.tg - A grammar for transforming the output of a PGE parse
-into an abstract syntax tree (PAST).
-
-=head1 DESCRIPTION
+=head2 Description
+A grammar for transforming the output of a PGE parse
+into an abstract syntax tree (PAST).
=cut
View
9 src/POSTGrammar.tg
@@ -1,13 +1,12 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 PAST to POST
-POSTGrammar.tg - A grammar for transforming the abstract syntax tree (PAST)
-into an opcode syntax tree (POST).
-
-=head1 DESCRIPTION
+=head2 Description
+A grammar for transforming the abstract syntax tree (PAST)
+into an opcode syntax tree (POST).
=cut
View
8 src/dumplex.tg
@@ -1,11 +1,9 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 a grammar for testing lexico
-src/dumplex.tg - a grammar for testing lexico
-
-=head1 DESCRIPTION
+=head2 Description
Just emits code that prints terminal nodes.
@@ -16,7 +14,7 @@ Used by F<languages/lua/test_lex.pir>.
grammar Lua::DumpLex is TGE::Grammar;
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/grammar51.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 elements of grammar for Lua 5.1
-src/grammar51.pir -- elements of grammar for Lua 5.1
-
-=head1 DESCRIPTION
+=head2 Description
Used by F<languages/lua/lua.pir> and F<languages/lua/test_lex.pir>.
@@ -13,7 +11,7 @@ Used by F<languages/lua/lua.pir> and F<languages/lua/test_lex.pir>.
.namespace [ 'Lua';'Grammar' ]
-=head2 Functions
+=head3 Functions
Some grammar routines are handly written in PIR.
View
8 src/lib/_helpers.pir
@@ -1,13 +1,11 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 helpers library
-lib/_helpers.pir - library
+=head2 Description
-=head1 DESCRIPTION
-
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/alarm.pir
@@ -1,17 +1,15 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Alarm Library
-lib/alarm.pir - Lua Alarm Library
-
-=head1 DESCRIPTION
+=head2 Description
The library exports a single function: alarm(s,[f]).
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lalarm/>
-=head2 Function
+=head3 Function
=over 4
View
8 src/lib/base64.pir
@@ -1,17 +1,15 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 base64 library
-lib/base64.pir - base64 library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbase64/>
This implementation is based on F<runtime/parrot/library/MIME/Base64.pir>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/bc.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 big number library
-lib/bc.pir - big number library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbc/>
@@ -14,7 +12,7 @@ multiple precision arithmetic library), see F<src/pmc/bigint.pmc>.
Use PMC BigFloat when available.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/bit.pir
@@ -1,16 +1,16 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 bitwise operations library
-lib/bit.pir - bitwise operations library
-
-=head1 DESCRIPTION
+=head2 Description
bit is a library for Lua 5.1 that provides bitwise operations on number.
See original on L<http://bitop.luajit.org/>
+=head3 Functions
+
=over 4
=cut
View
8 src/lib/bitlib.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 bitwise operations library
-lib/bitlib.pir - bitwise operations library
-
-=head1 DESCRIPTION
+=head2 Description
bitlib is a library for Lua 5.1 that provides bitwise operations.
@@ -14,7 +12,7 @@ See original on L<http://luaforge.net/projects/bitlib/>
The library provides the constant C<bit.bits> that gives the number of bits
that can be used in bitwise operations, and the following functions:
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/complex.pir
@@ -1,17 +1,15 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 complex library
-lib/complex.pir - complex library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lcomplex>
This implementation is based on F<src/pmc/complex.pmc>.
-=head2 Functions
+=head3 Functions
=over 4
View
6 src/lib/gl_binding.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 OpenGL library
-lib/gl_binding.pir - OpenGL library
-
-=head1 DESCRIPTION
+=head2 Description
This file implements the OpenGL binding for Lua.
View
8 src/lib/glut.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 GLUT library
-lib/glut.pir - GLUT library
-
-=head1 DESCRIPTION
+=head2 Description
This file implements the GLUT binding for Lua.
@@ -14,6 +12,8 @@ See original on L<http://luagl.wikidot.com/>
This implementation is based on a wrapper over OpenGL,
see F<runtime/parrot/library/OpenGL.pir>.
+=head3 Functions
+
=over 4
=cut
View
8 src/lib/lfs.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua File System Library v1.4.0
-lib/lfs.pir - Lua File System Library v1.4.0
-
-=head1 DESCRIPTION
+=head2 Description
LuaFileSystem is a Lua library developed to complement the set of functions
related to file systems offered by the standard Lua distribution.
@@ -15,7 +13,7 @@ structure and file attributes.
See original on L<http://luaforge.net/projects/luafilesystem/>
-=head2 Functions
+=head3 Functions
=over 4
View
20 src/lib/lpeg.pir
@@ -1,19 +1,17 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Parsing Expression Grammar for Lua, version 0.9
-lib/lpeg.pir - Parsing Expression Grammar for Lua, version 0.9
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.inf.puc-rio.br/~roberto/lpeg.html>
-=head2 Introduction
+=head3 Introduction
See on L<http://www.inf.puc-rio.br/~roberto/lpeg.html#intro>
-=head2 Functions
+=head3 Functions
=over 4
@@ -391,7 +389,7 @@ Returns a string with the running version of LPEG.
=back
-=head2 Basic Constructions
+=head3 Basic Constructions
The following operations build patterns. All operations that expect a
pattern as an argument may receive also strings, tables, numbers, booleans,
@@ -695,7 +693,7 @@ NOT YET IMPLEMENTED.
=back
-=head2 Grammars
+=head3 Grammars
With the use of Lua variables, it is possible to define patterns incrementally,
with each new pattern using previously defined ones. However, this technique
@@ -729,7 +727,7 @@ the same number of a's and b's:
B = "b" * lpeg.V"S" + "a" * lpeg.V"B" * lpeg.V"B",
} * -1
-=head2 Captures
+=head3 Captures
Captures specify what a match operation should return (the so called
I<semantic information>). LPeg offers several kinds of captures, which
@@ -1171,11 +1169,11 @@ LIST
=back
-=head2 Some Examples
+=head3 Some Examples
L<http://www.inf.puc-rio.br/~roberto/lpeg.html#ex>
-=head1 LINKS
+=head2 Links
=over 4
View
10 src/lib/luaaux.pir
@@ -1,13 +1,11 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Auxiliary PIR Library
-lib/luaaux.pir - Lua Auxiliary PIR Library
+=head2 Description
-=head1 DESCRIPTION
-
-=head2 Functions
+=head3 Functions
=over 4
@@ -912,7 +910,7 @@ This function never returns.
=back
-=head2 Others functions
+=head3 Others functions
=over 4
View
10 src/lib/luabasic.pir
@@ -1,18 +1,16 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Basic Library
-lib/luabasic.pir - Lua Basic Library
-
-=head1 DESCRIPTION
+=head2 Description
The basic library provides some core functions to Lua.
See "Lua 5.1 Reference Manual", section 5.1 "Basic Functions",
L<http://www.lua.org/manual/5.1/manual.html#5.1>.
-=head2 Variables
+=head3 Variables
=over 4
@@ -96,7 +94,7 @@ interpreter version. The current contents of this variable is C<"Lua 5.1">.
=back
-=head2 Functions
+=head3 Functions
=over 4
View
6 src/lib/luabytecode.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua bytecode translation Library
-lib/luabytecode.pir - Lua bytecode translation Library
-
-=head1 DESCRIPTION
+=head2 Description
=cut
View
8 src/lib/luacoroutine.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Coroutine Library
-lib/luacoroutine.pir - Lua Coroutine Library
-
-=head1 DESCRIPTION
+=head2 Description
The operations related to coroutines comprise a sub-library of the basic
library and come inside the table C<coroutine>.
@@ -13,7 +11,7 @@ library and come inside the table C<coroutine>.
See "Lua 5.1 Reference Manual", section 5.2 "Coroutine Manipulation",
L<http://www.lua.org/manual/5.1/manual.html#5.2>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/luadebug.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Debug Library
-lib/luadebug.pir - Lua Debug Library
-
-=head1 DESCRIPTION
+=head2 Description
This library provides the functionality of the debug interface to Lua programs.
You should exert care when using this library. The functions provided here
@@ -22,7 +20,7 @@ All functions in this library are provided inside the C<debug> table.
See "Lua 5.1 Reference Manual", section 5.9 "The Debug Library",
L<http://www.lua.org/manual/5.1/manual.html#5.9>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/luafile.pir
@@ -1,15 +1,13 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Input/Output Library
-lib/luafile.pir - Lua Input/Output Library
-
-=head1 DESCRIPTION
+=head2 Description
See F<languages/lua/lib/luaio.pir>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/luaio.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Input/Output Library
-lib/luaio.pir - Lua Input/Output Library
-
-=head1 DESCRIPTION
+=head2 Description
The I/O library provides two different styles for file manipulation. The first
one uses implicit file descriptors, that is, there are operations to set a
@@ -27,7 +25,7 @@ success.
See "Lua 5.1 Reference Manual", section 5.7 "Input and Ouput Facilities",
L<http://www.lua.org/manual/5.1/manual.html#5.7>.
-=head2 Functions
+=head3 Functions
=over 4
View
6 src/lib/luamath.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Mathematical Library
-lib/luamath.pir - Lua Mathematical Library
-
-=head1 DESCRIPTION
+=head2 Description
This library is an interface to the standard C math library. It provides all
its functions inside the table C<math>. The library provides the following
View
8 src/lib/luaos.pir
@@ -1,18 +1,16 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Operating System Library
-lib/luaos.pir - Lua Operating System Library
-
-=head1 DESCRIPTION
+=head2 Description
This library is implemented through table C<os>.
See "Lua 5.1 Reference Manual", section 5.8 "Operating System Facilities",
L<http://www.lua.org/manual/5.1/manual.html#5.8>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/luapackage.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Package Library
-lib/luapackage.pir - Lua Package Library
-
-=head1 DESCRIPTION
+=head2 Description
The package library provides basic facilities for loading and building
modules in Lua. It exports two of its functions directly in the global
@@ -289,7 +287,7 @@ LIST
.end
-=head2 Functions & Variables
+=head3 Functions & Variables
=over 4
View
8 src/lib/luaperl.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Perl Compiler
-lib/luaperl.pir
-
-=head1 DESCRIPTION
+=head2 Description
Encapsulation of the compiler written in Perl as a Parrot registered compiler.
@@ -23,7 +21,7 @@ This encapsulation is used to implement some Lua functions :
It's a temporary work. Waiting for the real PIR compiler/interpreter.
-=head2 Methods
+=head3 Methods
=over 4
View
16 src/lib/luaregex.pir
@@ -1,16 +1,14 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua regex compiler
-lib/luaregex.pir - Lua regex compiler
-
-=head1 DESCRIPTION
+=head2 Description
See "Lua 5.1 Reference Manual", section 5.4.1 "Patterns",
L<http://www.lua.org/manual/5.1/manual.html#5.4.1>.
-=head2 Character Class:
+=head3 Character Class:
A I<character class> is used to represent a set of characters. The following
combinations are allowed in describing a character class:
@@ -100,7 +98,7 @@ The definitions of letter, space, and other character groups depend on the
current locale. In particular, the class C<[a-z]> may not be equivalent to
C<%l>.
-=head2 Pattern Item:
+=head3 Pattern Item:
A I<pattern item> may be
@@ -149,7 +147,7 @@ expressions with balanced parentheses.
=back
-=head2 Pattern:
+=head3 Pattern:
A I<pattern> is a sequence of pattern items. A C<'^'> at the beginning of a
pattern anchors the match at the beginning of the subject string. A C<'$'> at
@@ -157,7 +155,7 @@ the end of a pattern anchors the match at the end of the subject string. At
other positions, C<'^'> and C<'$'> have no special meaning and represent
themselves.
-=head2 Captures:
+=head3 Captures:
A pattern may contain sub-patterns enclosed in parentheses; they describe
I<captures>. When a match succeeds, the substrings of the subject string that
@@ -174,7 +172,7 @@ string C<"flaaap">, there will be two captures: 3 and 5.
A pattern cannot contain embedded zeros. Use C<%z> instead.
-=head1 HISTORY
+=head2 History
Mostly taken from F<compilers/pge/PGE/P5Regex.pir>.
View
8 src/lib/luastring.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua String Library
-lib/luastring.pir - Lua String Library
-
-=head1 DESCRIPTION
+=head2 Description
This library provides generic functions for string manipulation, such as
finding and extracting substrings, and pattern matching. When indexing a
@@ -23,7 +21,7 @@ C<s:byte(i)>.
See "Lua 5.1 Reference Manual", section 5.4 "String Manipulation",
L<http://www.lua.org/manual/5.1/manual.html#5.4>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/luatable.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Table Library
-lib/luatable.pir - Lua Table Library
-
-=head1 DESCRIPTION
+=head2 Description
This library provides generic functions for table manipulation. It provides
all its functions inside the table C<table>.
@@ -17,7 +15,7 @@ table we mean the result of the length operator.
See "Lua 5.1 Reference Manual", section 5.5 "Table Manipulation",
L<http://www.lua.org/manual/5.1/manual.html#5.5>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/markdown.pir
@@ -1,17 +1,15 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Markdown library
-lib/markdown.pir - Markdown library
-
-=head1 DESCRIPTION
+=head2 Description
See L<http://daringfireball.net/projects/markdown/>.
This implementation is based on F<languages/markdown/markdown.pir>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/mathx.pir
@@ -1,14 +1,14 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 math library
-lib/math.pir - math library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmathx>.
+=head3 Functions
+
=over 4
=cut
View
8 src/lib/md5.pir
@@ -1,18 +1,16 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 md5 library
-lib/md5.pir - md5 library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmd5/>
This implementation is based on a wrapper over libcrypto (a part of libssl),
see F<src/dynpmc/mdx.pmc>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/random.pir
@@ -1,18 +1,16 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 random library
-lib/random.pir - random library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lrandom/>
This implementation is based on the Mersenne Twisted random generator,
see F<runtime/parrot/library/Math/Random/mt19937ar.pir>.
-=head2 Functions
+=head3 Functions
=over 4
View
8 src/lib/struct.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 struct library
-lib/struct.pir - struct library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.inf.puc-rio.br/~roberto/struct/>
@@ -97,7 +95,7 @@ In that case, this previous value is not returned.
=back
-=head2 Functions
+=head3 Functions
All functions are registered inside a table C<struct>.
View
8 src/lib/uuid.pir
@@ -1,17 +1,15 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 uuid library
-lib/uuid.pir - uuid library
-
-=head1 DESCRIPTION
+=head2 Description
See original on L<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#luuid/>
This implementation is based on F<runtime/parrot/library/uuid.pir>.
-=head2 Functions
+=head3 Functions
=over 4
View
14 src/lua51.pg
@@ -1,13 +1,11 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 a Lua 5.1 grammar in PGE
-lua.pg - a Lua 5.1 grammar in PGE
+=head2 Description
-=head1 DESCRIPTION
-
-=head2 GRAMMAR RULES
+=head3 Grammar Rules
The grammar rules are according to the original Lua parser as defined lparser.c
in the lua distribution.
@@ -203,7 +201,7 @@ rule simple_expression {
}
-=head2 HELPER RULES
+=head3 Helper Rules
Helper rules will match a specific token, otherwise a syntax error is generated.
These rules make the grammar more readable, so the calls to syntaxerror() are
@@ -248,7 +246,7 @@ rule closeparen {
}
-=head2 TOKENS
+=head3 Tokens
Tokens not defined here (in PGE) are written in PIR in
F<languages/lua/src/lua51.pir>.
@@ -292,7 +290,7 @@ token shebang {
'#' \N*
}
-=head2 EXPRESSIONS
+=head3 Expressions
Operator precedence is implemented using an optable.
View
10 src/lua51.pir
@@ -1,11 +1,9 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 The compiler for Lua 5.1
-src/lua51.pir -- The compiler for Lua 5.1
-
-=head1 DESCRIPTION
+=head2 Description
This compiler extends C<PCT::HLLCompiler>
(see F<compilers/pct/src/PCT/HLLCompiler.pir>)
@@ -47,7 +45,7 @@ Used by F<languages/lua/lua.pir>.
.namespace [ 'Lua';'Compiler' ]
-=head2 Overloaded methods
+=head3 Overloaded methods
=over 4
@@ -95,7 +93,7 @@ resulting ost.
.namespace [ 'Lua'; 'PAST'; 'Grammar' ]
-=head2 Functions
+=head3 Functions
=over 4
View
6 src/lua51_testlex.pg
@@ -1,11 +1,9 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 a grammar for testing lexico
-src/lua51_testlex.pg - a grammar for testing lexico
-
-=head1 DESCRIPTION
+=head2 Description
This grammar allows to test the lexico part of Lua::Grammar.
View
8 src/pmc/lua.pmc
@@ -2,15 +2,13 @@
Copyright (C) 2006-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua native runtime
-pmc/lua.pmc - Lua native runtime
-
-=head1 DESCRIPTION
+=head2 Description
This singleton PMC holds some static methods.
-=head2 Methods
+=head3 Methods
=over 4
View
16 src/pmc/luaany.pmc
@@ -2,15 +2,13 @@
Copyright (C) 2006-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua abstract base class
-pmc/luaany.pmc - Lua abstract base class
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaAny> provides an abstract base class for some Lua types.
-=head2 PMC Inheritance Summary
+=head3 PMC Inheritance Summary
Class Parents
-----------------------------------------------
@@ -23,7 +21,7 @@ C<LuaAny> provides an abstract base class for some Lua types.
LuaThread LuaAny, Default
LuaUserdata LuaAny, Default
-=head2 PMC "Attribute" Summary
+=head3 PMC "Attribute" Summary
Class Metatable Environment Userdata
accessor get_metatable getfenv get_attr_str (getattribute)
@@ -41,7 +39,7 @@ C<LuaAny> provides an abstract base class for some Lua types.
The metatable supports the OO mecanism.
-=head2 Methods
+=head3 Methods
=over 4
@@ -285,7 +283,7 @@ Throws an exception.
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -557,7 +555,7 @@ Without shortcut like in Default PMC.
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luaboolean.pmc
@@ -2,18 +2,16 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Boolean
-pmc/luaboolean.pmc - Lua Boolean
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaBoolean> extends C<LuaAny> to provide a class with the behaviour of
the Lua C<Boolean> type.
The value is stored as an Integer.
-=head2 Methods
+=head3 Methods
=over 4
@@ -230,7 +228,7 @@ Used to unarchive the boolean.
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -251,7 +249,7 @@ Used to unarchive the boolean.
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
8 src/pmc/luabytecode.pmc
@@ -2,15 +2,13 @@
Copyright (C) 2008-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua 5.1 VM bytecode loader
-pmc/luabytecode - Lua 5.1 VM bytecode loader
-
-=head1 DESCRIPTION
+=head2 Description
This singleton PMC holds a factory.
-=head2 Methods
+=head3 Methods
=over 4
View
12 src/pmc/luafunction.pmc
@@ -2,16 +2,14 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Function
-pmc/luafunction.pmc - Lua Function
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaFunction> extends C<Parrot Sub> and C<LuaAny> to provide a class
with the behaviour of the Lua C<Function> type.
-=head2 Overloaded Methods
+=head3 Overloaded Methods
=over 4
@@ -122,7 +120,7 @@ Return the string "function".
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -144,7 +142,7 @@ Return the string "function".
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luanil.pmc
@@ -2,11 +2,9 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Nil
-pmc/luanil.pmc - Lua Nil
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaNil> extends C<LuaAny> to provide a class with the behaviour of
the Lua C<Nil> type.
@@ -20,7 +18,7 @@ and so a new PMC is constructed anyway. Therefore, we may as well create
a new PMC right away. Also, creating a new PMC from a singleton class is
troublesome (if not possible?).
-=head2 Methods
+=head3 Methods
=over 4
@@ -129,7 +127,7 @@ Return always C<false>.
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -150,7 +148,7 @@ Return always C<false>.
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luanumber.pmc
@@ -2,16 +2,14 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Number
-pmc/luanumber.pmc - Lua Number
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaNumber> extends C<LuaAny> to provide a class with the behaviour of
the Lua C<Number> type.
-=head2 Overloaded Methods
+=head3 Overloaded Methods
=over 4
@@ -306,7 +304,7 @@ Used to unarchive the number.
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -930,7 +928,7 @@ Used to unarchive the number.
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luastring.pmc
@@ -2,16 +2,14 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua String
-pmc/luastring.pmc - Lua String
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaString> extends C<LuaAny> to provide a class with the behaviour of
the Lua C<String> type.
-=head2 Overloaded Methods
+=head3 Overloaded Methods
=over 4
@@ -273,7 +271,7 @@ Used to unarchive the string.
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -969,7 +967,7 @@ Throws an exception unless C<value> is a LuaString.
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luatable.pmc
@@ -2,18 +2,16 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Table
-pmc/luatable.pmc - Lua Table
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaTable> extends C<LuaBase> to provide a class with the behaviour of
the Lua C<Table> type.
This implementation is based on the Lua 4.0 one.
-=head2 Overloaded Methods
+=head3 Overloaded Methods
=over 4
@@ -598,7 +596,7 @@ Returns the number of elements in the table.
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -696,7 +694,7 @@ The C<==> operation. Compares reference (not in depth).
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luathread.pmc
@@ -2,17 +2,15 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Thread
-pmc/luathread.pmc - Lua Thread
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaThread> extends C<LuaAny> to provide a class with the behaviour
of the Lua C<Thread> type.
This implementation is based on C<Parrot::Coroutine>.
-=head2 Overloaded Methods
+=head3 Overloaded Methods
=over 4
@@ -186,7 +184,7 @@ Return the string "thread".
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -207,7 +205,7 @@ Return the string "thread".
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
12 src/pmc/luauserdata.pmc
@@ -2,16 +2,14 @@
Copyright (C) 2005-2009, Parrot Foundation.
$Id$
-=head1 NAME
+=head1 Lua Userdata
-pmc/luauserdata.pmc - Lua Userdata
-
-=head1 DESCRIPTION
+=head2 Description
C<LuaUserdata> extends C<LuaAny> to provide a class with the behaviour of
the Lua C<Userdata> type.
-=head2 Overloaded Methods
+=head3 Overloaded Methods
=over 4
@@ -198,7 +196,7 @@ Return the string "userdata".
=back
-=head2 non-Vtable Methods
+=head3 non-Vtable Methods
=over 4
@@ -295,7 +293,7 @@ The C<==> operation. Compares reference (not in depth).
=back
-=head2 Specific Methods
+=head3 Specific Methods
=over 4
View
14 t/Parrot/Test/Lua.pm
@@ -5,17 +5,15 @@ package Parrot::Test::Lua;
require Parrot::Test;
-=head1 NAME
+=head1 Testing routines specific to 'lua'.
-Test/Lua.pm - Testing routines specific to 'lua'.
-
-=head1 DESCRIPTION
+=head2 Description
Call 'Lua on Parrot' and 'original lua'.
-=head1 METHODS
+=head2 Methods
-=head2 new
+=head3 new
Yet another constructor.
@@ -132,11 +130,11 @@ foreach my $func ( keys %language_test_map ) {
}
}
-=head1 HISTORY
+=head2 History
Mostly taken from F<languages/bc/lib/Parrot/Test/Bc.pm>.
-=head1 SEE ALSO
+=head2 See Also
F<languages/tcl/lib/Parrot/Test/Tcl.pm>
View
12 t/Parrot/Test/Lua_lex.pm
@@ -5,17 +5,15 @@ package Parrot::Test::Lua_lex;
require Parrot::Test;
-=head1 NAME
+=head1 Testing routines specific to 'lua' lexicography.
-Test/Lua_lex.pm - Testing routines specific to 'lua' lexicography.
-
-=head1 DESCRIPTION
+=head2 Description
Call F<languages/lua/test_lex.pir>.
-=head1 METHODS
+=head2 Methods
-=head2 new
+=head3 new
Yet another constructor.
@@ -86,7 +84,7 @@ foreach my $func ( keys %language_test_map ) {
}
}
-=head1 SEE ALSO
+=head2 See Also
F<languages/lua/t/Parrot/Test/Lua.pm>
View
12 t/Parrot/Test/Luad.pm
@@ -5,17 +5,15 @@ package Parrot::Test::Luad;
require Parrot::Test;
-=head1 NAME
+=head1 Testing routines specific to 'luad.pir'.
-Test/Luad.pm - Testing routines specific to 'luad.pir'.
-
-=head1 DESCRIPTION
+=head2 Description
Call F<languages/lua/luad.pir>.
-=head1 METHODS
+=head2 Methods
-=head2 new
+=head3 new
Yet another constructor.
@@ -88,7 +86,7 @@ foreach my $func ( keys %language_test_map ) {
}
}
-=head1 SEE ALSO
+=head2 See Also
F<languages/lua/t/Parrot/Test/Lua.pm>
View
8 t/alarm.t
@@ -2,15 +2,13 @@
# Copyright (C) 2007-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Alarm Library
-t/alarm.t - Lua Alarm Library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/alarm.t
-=head1 DESCRIPTION
+=head2 Description
Tests Lua Alarm Library
(implemented in F<languages/lua/src/lib/alarm.pir>).
View
8 t/assign.t
@@ -2,15 +2,13 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua assignment
-t/assign.t - Lua assignment
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/assign.t
-=head1 DESCRIPTION
+=head2 Description
See "Lua 5.1 Reference Manual", section 2.4.3 "Assignment",
L<http://www.lua.org/manual/5.1/manual.html#2.4.3>.
View
8 t/base64.t
@@ -2,15 +2,13 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 base64 library
-t/base64.t - base64 library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/base64.t
-=head1 DESCRIPTION
+=head2 Description
Tests base64
(implemented in F<languages/lua/src/lib/base64.pir>).
View
8 t/basic.t
@@ -2,15 +2,13 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Basic Library
-t/basic.t - Lua Basic Library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/basic.t
-=head1 DESCRIPTION
+=head2 Description
Tests Lua Basic Library
(implemented in F<languages/lua/lib/luabasic.pir>).
View
8 t/bc.t
@@ -2,15 +2,13 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 bc library
-t/bc.t - bc library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/bc.t
-=head1 DESCRIPTION
+=head2 Description
Tests bc
(implemented in F<languages/lua/src/lib/bc.pir>).
View
8 t/bit.t
@@ -2,15 +2,13 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 bitwise operations library
-t/bit.t - bitwise operations library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/bit.t
-=head1 DESCRIPTION
+=head2 Description
Tests bit
(implemented in F<languages/lua/src/lib/bit.pir>).
View
8 t/bitlib.t
@@ -2,15 +2,13 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 bitwise operations library
-t/bitlib.t - bitwise operations library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/bitlib.t
-=head1 DESCRIPTION
+=head2 Description
Tests bitlib
(implemented in F<languages/lua/src/lib/bitlib.pir>).
View
8 t/boolean.t
@@ -2,15 +2,13 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua boolean & coercion
-t/boolean.t - Lua boolean & coercion
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/boolean.t
-=head1 DESCRIPTION
+=head2 Description
=cut
View
8 t/closure.t
@@ -2,15 +2,13 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua closures
-t/closure.t - Lua closures
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/closure.t
-=head1 DESCRIPTION
+=head2 Description
See "Lua 5.1 Reference Manual", section 2.6 "Visibility Rules",
L<http://www.lua.org/manual/5.1/manual.html#2.6>.
View
8 t/complex.t
@@ -2,15 +2,13 @@
# Copyright (C) 2008-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 complex library
-t/complex.t - complex library
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/complex.t
-=head1 DESCRIPTION
+=head2 Description
Tests complex
(implemented in F<languages/lua/src/lib/complex.pir>).
View
8 t/constructor.t
@@ -2,15 +2,13 @@
# Copyright (C) 2005-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Table Constructors
-t/constructor.t - Lua Table Constructors
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/constructor.t
-=head1 DESCRIPTION
+=head2 Description
See "Lua 5.1 Reference Manual", section 2.5.7 "Table Constructors",
L<http://www.lua.org/manual/5.1/manual.html#2.5.7>.
View
8 t/coroutine.t
@@ -2,15 +2,13 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua coroutines
-t/coroutine.t - Lua coroutines
-
-=head1 SYNOPSIS
+=head2 Synopsis
% perl t/coroutine.t
-=head1 DESCRIPTION
+=head2 Description
See "Lua 5.1 Reference Manual", section 2.11 "Coroutines",
L<http://www.lua.org/manual/5.1/manual.html#2.11>.
View
8 t/debug.t
@@ -2,15 +2,13 @@
# Copyright (C) 2006-2009, Parrot Foundation.
# $Id$
-=head1 NAME
+=head1 Lua Debug Library