Tamar 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/.gitmodules +3 -0
  2. data/HISTORY +22 -5
  3. data/Tamar.gemspec +114 -1
  4. data/VERSION +1 -1
  5. data/src/lua/CMakeLists.txt +176 -0
  6. data/src/lua/COPYRIGHT +34 -0
  7. data/src/lua/FindReadline.cmake +25 -0
  8. data/src/lua/HISTORY +183 -0
  9. data/src/lua/INSTALL +99 -0
  10. data/src/lua/Makefile +128 -0
  11. data/src/lua/README +46 -0
  12. data/src/lua/dist.cmake +450 -0
  13. data/src/lua/dist.info +10 -0
  14. data/src/lua/doc/amazon.gif +0 -0
  15. data/src/lua/doc/contents.html +499 -0
  16. data/src/lua/doc/cover.png +0 -0
  17. data/src/lua/doc/logo.gif +0 -0
  18. data/src/lua/doc/lua.1 +163 -0
  19. data/src/lua/doc/lua.css +41 -0
  20. data/src/lua/doc/lua.html +172 -0
  21. data/src/lua/doc/luac.1 +136 -0
  22. data/src/lua/doc/luac.html +145 -0
  23. data/src/lua/doc/manual.css +13 -0
  24. data/src/lua/doc/manual.html +8801 -0
  25. data/src/lua/doc/readme.html +40 -0
  26. data/src/lua/etc/Makefile +44 -0
  27. data/src/lua/etc/README +37 -0
  28. data/src/lua/etc/all.c +38 -0
  29. data/src/lua/etc/lua.hpp +9 -0
  30. data/src/lua/etc/lua.ico +0 -0
  31. data/src/lua/etc/lua.pc +31 -0
  32. data/src/lua/etc/luavs.bat +28 -0
  33. data/src/lua/etc/min.c +39 -0
  34. data/src/lua/etc/noparser.c +50 -0
  35. data/src/lua/etc/strict.lua +41 -0
  36. data/src/lua/src/Makefile +182 -0
  37. data/src/lua/src/lapi.c +1087 -0
  38. data/src/lua/src/lapi.h +16 -0
  39. data/src/lua/src/lauxlib.c +652 -0
  40. data/src/lua/src/lauxlib.h +174 -0
  41. data/src/lua/src/lbaselib.c +653 -0
  42. data/src/lua/src/lcode.c +831 -0
  43. data/src/lua/src/lcode.h +76 -0
  44. data/src/lua/src/ldblib.c +398 -0
  45. data/src/lua/src/ldebug.c +638 -0
  46. data/src/lua/src/ldebug.h +33 -0
  47. data/src/lua/src/ldo.c +518 -0
  48. data/src/lua/src/ldo.h +57 -0
  49. data/src/lua/src/ldump.c +164 -0
  50. data/src/lua/src/lfunc.c +174 -0
  51. data/src/lua/src/lfunc.h +34 -0
  52. data/src/lua/src/lgc.c +711 -0
  53. data/src/lua/src/lgc.h +110 -0
  54. data/src/lua/src/linit.c +38 -0
  55. data/src/lua/src/liolib.c +556 -0
  56. data/src/lua/src/llex.c +463 -0
  57. data/src/lua/src/llex.h +81 -0
  58. data/src/lua/src/llimits.h +128 -0
  59. data/src/lua/src/lmathlib.c +263 -0
  60. data/src/lua/src/lmem.c +86 -0
  61. data/src/lua/src/lmem.h +49 -0
  62. data/src/lua/src/loadlib.c +666 -0
  63. data/src/lua/src/loadlib_rel.c +719 -0
  64. data/src/lua/src/lobject.c +214 -0
  65. data/src/lua/src/lobject.h +381 -0
  66. data/src/lua/src/lopcodes.c +102 -0
  67. data/src/lua/src/lopcodes.h +268 -0
  68. data/src/lua/src/loslib.c +243 -0
  69. data/src/lua/src/lparser.c +1339 -0
  70. data/src/lua/src/lparser.h +82 -0
  71. data/src/lua/src/lstate.c +214 -0
  72. data/src/lua/src/lstate.h +169 -0
  73. data/src/lua/src/lstring.c +111 -0
  74. data/src/lua/src/lstring.h +31 -0
  75. data/src/lua/src/lstrlib.c +871 -0
  76. data/src/lua/src/ltable.c +588 -0
  77. data/src/lua/src/ltable.h +40 -0
  78. data/src/lua/src/ltablib.c +287 -0
  79. data/src/lua/src/ltm.c +75 -0
  80. data/src/lua/src/ltm.h +54 -0
  81. data/src/lua/src/lua.c +392 -0
  82. data/src/lua/src/lua.def +131 -0
  83. data/src/lua/src/lua.h +388 -0
  84. data/src/lua/src/lua.rc +28 -0
  85. data/src/lua/src/lua_dll.rc +26 -0
  86. data/src/lua/src/luac.c +200 -0
  87. data/src/lua/src/luac.rc +1 -0
  88. data/src/lua/src/luaconf.h.in +724 -0
  89. data/src/lua/src/luaconf.h.orig +763 -0
  90. data/src/lua/src/lualib.h +53 -0
  91. data/src/lua/src/lundump.c +227 -0
  92. data/src/lua/src/lundump.h +36 -0
  93. data/src/lua/src/lvm.c +766 -0
  94. data/src/lua/src/lvm.h +36 -0
  95. data/src/lua/src/lzio.c +82 -0
  96. data/src/lua/src/lzio.h +67 -0
  97. data/src/lua/src/print.c +227 -0
  98. data/src/lua/test/README +26 -0
  99. data/src/lua/test/bisect.lua +27 -0
  100. data/src/lua/test/cf.lua +16 -0
  101. data/src/lua/test/echo.lua +5 -0
  102. data/src/lua/test/env.lua +7 -0
  103. data/src/lua/test/factorial.lua +32 -0
  104. data/src/lua/test/fib.lua +40 -0
  105. data/src/lua/test/fibfor.lua +13 -0
  106. data/src/lua/test/globals.lua +13 -0
  107. data/src/lua/test/hello.lua +3 -0
  108. data/src/lua/test/life.lua +111 -0
  109. data/src/lua/test/luac.lua +7 -0
  110. data/src/lua/test/printf.lua +7 -0
  111. data/src/lua/test/readonly.lua +12 -0
  112. data/src/lua/test/sieve.lua +29 -0
  113. data/src/lua/test/sort.lua +66 -0
  114. data/src/lua/test/table.lua +12 -0
  115. data/src/lua/test/trace-calls.lua +32 -0
  116. data/src/lua/test/trace-globals.lua +38 -0
  117. data/src/lua/test/xd.lua +14 -0
  118. metadata +115 -2
data/src/lua/INSTALL ADDED
@@ -0,0 +1,99 @@
1
+ INSTALL for Lua 5.1
2
+
3
+ * Building Lua
4
+ ------------
5
+ Lua is built in the src directory, but the build process can be
6
+ controlled from the top-level Makefile.
7
+
8
+ Building Lua on Unix systems should be very easy. First do "make" and
9
+ see if your platform is listed. If so, just do "make xxx", where xxx
10
+ is your platform name. The platforms currently supported are:
11
+ aix ansi bsd freebsd generic linux macosx mingw posix solaris
12
+
13
+ If your platform is not listed, try the closest one or posix, generic,
14
+ ansi, in this order.
15
+
16
+ See below for customization instructions and for instructions on how
17
+ to build with other Windows compilers.
18
+
19
+ If you want to check that Lua has been built correctly, do "make test"
20
+ after building Lua. Also, have a look at the example programs in test.
21
+
22
+ * Installing Lua
23
+ --------------
24
+ Once you have built Lua, you may want to install it in an official
25
+ place in your system. In this case, do "make install". The official
26
+ place and the way to install files are defined in Makefile. You must
27
+ have the right permissions to install files.
28
+
29
+ If you want to build and install Lua in one step, do "make xxx install",
30
+ where xxx is your platform name.
31
+
32
+ If you want to install Lua locally, then do "make local". This will
33
+ create directories bin, include, lib, man, and install Lua there as
34
+ follows:
35
+
36
+ bin: lua luac
37
+ include: lua.h luaconf.h lualib.h lauxlib.h lua.hpp
38
+ lib: liblua.a
39
+ man/man1: lua.1 luac.1
40
+
41
+ These are the only directories you need for development.
42
+
43
+ There are man pages for lua and luac, in both nroff and html, and a
44
+ reference manual in html in doc, some sample code in test, and some
45
+ useful stuff in etc. You don't need these directories for development.
46
+
47
+ If you want to install Lua locally, but in some other directory, do
48
+ "make install INSTALL_TOP=xxx", where xxx is your chosen directory.
49
+
50
+ See below for instructions for Windows and other systems.
51
+
52
+ * Customization
53
+ -------------
54
+ Three things can be customized by editing a file:
55
+ - Where and how to install Lua -- edit Makefile.
56
+ - How to build Lua -- edit src/Makefile.
57
+ - Lua features -- edit src/luaconf.h.
58
+
59
+ You don't actually need to edit the Makefiles because you may set the
60
+ relevant variables when invoking make.
61
+
62
+ On the other hand, if you need to select some Lua features, you'll need
63
+ to edit src/luaconf.h. The edited file will be the one installed, and
64
+ it will be used by any Lua clients that you build, to ensure consistency.
65
+
66
+ We strongly recommend that you enable dynamic loading. This is done
67
+ automatically for all platforms listed above that have this feature
68
+ (and also Windows). See src/luaconf.h and also src/Makefile.
69
+
70
+ * Building Lua on Windows and other systems
71
+ -----------------------------------------
72
+ If you're not using the usual Unix tools, then the instructions for
73
+ building Lua depend on the compiler you use. You'll need to create
74
+ projects (or whatever your compiler uses) for building the library,
75
+ the interpreter, and the compiler, as follows:
76
+
77
+ library: lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c
78
+ lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c
79
+ ltable.c ltm.c lundump.c lvm.c lzio.c
80
+ lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c
81
+ ltablib.c lstrlib.c loadlib.c linit.c
82
+
83
+ interpreter: library, lua.c
84
+
85
+ compiler: library, luac.c print.c
86
+
87
+ If you use Visual Studio .NET, you can use etc/luavs.bat in its
88
+ "Command Prompt".
89
+
90
+ If all you want is to build the Lua interpreter, you may put all .c files
91
+ in a single project, except for luac.c and print.c. Or just use etc/all.c.
92
+
93
+ To use Lua as a library in your own programs, you'll need to know how to
94
+ create and use libraries with your compiler.
95
+
96
+ As mentioned above, you may edit luaconf.h to select some features before
97
+ building Lua.
98
+
99
+ (end of INSTALL)
data/src/lua/Makefile ADDED
@@ -0,0 +1,128 @@
1
+ # makefile for installing Lua
2
+ # see INSTALL for installation instructions
3
+ # see src/Makefile and src/luaconf.h for further customization
4
+
5
+ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
6
+
7
+ # Your platform. See PLATS for possible values.
8
+ PLAT= none
9
+
10
+ # Where to install. The installation starts in the src and doc directories,
11
+ # so take care if INSTALL_TOP is not an absolute path.
12
+ INSTALL_TOP= /usr/local
13
+ INSTALL_BIN= $(INSTALL_TOP)/bin
14
+ INSTALL_INC= $(INSTALL_TOP)/include
15
+ INSTALL_LIB= $(INSTALL_TOP)/lib
16
+ INSTALL_MAN= $(INSTALL_TOP)/man/man1
17
+ #
18
+ # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
19
+ # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
20
+ INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
21
+ INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
22
+
23
+ # How to install. If your install program does not support "-p", then you
24
+ # may have to run ranlib on the installed liblua.a (do "make ranlib").
25
+ INSTALL= install -p
26
+ INSTALL_EXEC= $(INSTALL) -m 0755
27
+ INSTALL_DATA= $(INSTALL) -m 0644
28
+ #
29
+ # If you don't have install you can use cp instead.
30
+ # INSTALL= cp -p
31
+ # INSTALL_EXEC= $(INSTALL)
32
+ # INSTALL_DATA= $(INSTALL)
33
+
34
+ # Utilities.
35
+ MKDIR= mkdir -p
36
+ RANLIB= ranlib
37
+
38
+ # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
39
+
40
+ # Convenience platforms targets.
41
+ PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
42
+
43
+ # What to install.
44
+ TO_BIN= lua luac
45
+ TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
46
+ TO_LIB= liblua.a
47
+ TO_MAN= lua.1 luac.1
48
+
49
+ # Lua version and release.
50
+ V= 5.1
51
+ R= 5.1.4
52
+
53
+ all: $(PLAT)
54
+
55
+ $(PLATS) clean:
56
+ cd src && $(MAKE) $@
57
+
58
+ test: dummy
59
+ src/lua test/hello.lua
60
+
61
+ install: dummy
62
+ cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
63
+ cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
64
+ cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
65
+ cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
66
+ cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
67
+
68
+ ranlib:
69
+ cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)
70
+
71
+ local:
72
+ $(MAKE) install INSTALL_TOP=..
73
+
74
+ none:
75
+ @echo "Please do"
76
+ @echo " make PLATFORM"
77
+ @echo "where PLATFORM is one of these:"
78
+ @echo " $(PLATS)"
79
+ @echo "See INSTALL for complete instructions."
80
+
81
+ # make may get confused with test/ and INSTALL in a case-insensitive OS
82
+ dummy:
83
+
84
+ # echo config parameters
85
+ echo:
86
+ @echo ""
87
+ @echo "These are the parameters currently set in src/Makefile to build Lua $R:"
88
+ @echo ""
89
+ @cd src && $(MAKE) -s echo
90
+ @echo ""
91
+ @echo "These are the parameters currently set in Makefile to install Lua $R:"
92
+ @echo ""
93
+ @echo "PLAT = $(PLAT)"
94
+ @echo "INSTALL_TOP = $(INSTALL_TOP)"
95
+ @echo "INSTALL_BIN = $(INSTALL_BIN)"
96
+ @echo "INSTALL_INC = $(INSTALL_INC)"
97
+ @echo "INSTALL_LIB = $(INSTALL_LIB)"
98
+ @echo "INSTALL_MAN = $(INSTALL_MAN)"
99
+ @echo "INSTALL_LMOD = $(INSTALL_LMOD)"
100
+ @echo "INSTALL_CMOD = $(INSTALL_CMOD)"
101
+ @echo "INSTALL_EXEC = $(INSTALL_EXEC)"
102
+ @echo "INSTALL_DATA = $(INSTALL_DATA)"
103
+ @echo ""
104
+ @echo "See also src/luaconf.h ."
105
+ @echo ""
106
+
107
+ # echo private config parameters
108
+ pecho:
109
+ @echo "V = $(V)"
110
+ @echo "R = $(R)"
111
+ @echo "TO_BIN = $(TO_BIN)"
112
+ @echo "TO_INC = $(TO_INC)"
113
+ @echo "TO_LIB = $(TO_LIB)"
114
+ @echo "TO_MAN = $(TO_MAN)"
115
+
116
+ # echo config parameters as Lua code
117
+ # uncomment the last sed expression if you want nil instead of empty strings
118
+ lecho:
119
+ @echo "-- installation parameters for Lua $R"
120
+ @echo "VERSION = '$V'"
121
+ @echo "RELEASE = '$R'"
122
+ @$(MAKE) echo | grep = | sed -e 's/= /= "/' -e 's/$$/"/' #-e 's/""/nil/'
123
+ @echo "-- EOF"
124
+
125
+ # list targets that do not create files (but not all makes understand .PHONY)
126
+ .PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
127
+
128
+ # (end of Makefile)
data/src/lua/README ADDED
@@ -0,0 +1,46 @@
1
+ README for Lua 5.1
2
+
3
+ See INSTALL for installation instructions.
4
+ See HISTORY for a summary of changes since the last released version.
5
+
6
+ * What is Lua?
7
+ ------------
8
+ Lua is a powerful, light-weight programming language designed for extending
9
+ applications. Lua is also frequently used as a general-purpose, stand-alone
10
+ language. Lua is free software.
11
+
12
+ For complete information, visit Lua's web site at http://www.lua.org/ .
13
+ For an executive summary, see http://www.lua.org/about.html .
14
+
15
+ Lua has been used in many different projects around the world.
16
+ For a short list, see http://www.lua.org/uses.html .
17
+
18
+ * Availability
19
+ ------------
20
+ Lua is freely available for both academic and commercial purposes.
21
+ See COPYRIGHT and http://www.lua.org/license.html for details.
22
+ Lua can be downloaded at http://www.lua.org/download.html .
23
+
24
+ * Installation
25
+ ------------
26
+ In the LuaDist distribution the default makefiles have been replaced with
27
+ CMake. To build Lua use the following approach.
28
+ > mkdir _build && cd_build
29
+ > ccmake .. # Set up configuration, alternatively use cmake-gui on Windows.
30
+ > cmake --build . --target install
31
+
32
+ The default makefile should work too, you just need to edit src/luaconf.h.orig
33
+ and save it as src/luaconf.h.
34
+
35
+ > make
36
+
37
+ See INSTALL for detailed instructions with make.
38
+
39
+ * Origin
40
+ ------
41
+ Lua is developed at Lua.org, a laboratory of the Department of Computer
42
+ Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro
43
+ in Brazil).
44
+ For more information about the authors, see http://www.lua.org/authors.html .
45
+
46
+ (end of README)