Permalink
Browse files

use a modern POD style

  • Loading branch information...
1 parent 90c1184 commit 82ba894891759e1d92d8d98a18fcba7c38dcf83d @fperrad committed Feb 14, 2009
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
@@ -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
@@ -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
@@ -1,19 +1,17 @@
# 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
PAST
POST
PIR
-=head1 DESCRIPTION
+=head2 Description
C<luap> is a compiler for Lua 5.1 on Parrot.
View
@@ -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
@@ -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
@@ -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
@@ -1,19 +1,17 @@
# 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>.
=cut
.namespace [ 'Lua';'Grammar' ]
-=head2 Functions
+=head3 Functions
Some grammar routines are handly written in PIR.
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
Oops, something went wrong.

0 comments on commit 82ba894

Please sign in to comment.