diff options
Diffstat (limited to 'LuaSL/testLua/yueliang-0.4.1/orig-5.0.3/README')
-rw-r--r-- | LuaSL/testLua/yueliang-0.4.1/orig-5.0.3/README | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/LuaSL/testLua/yueliang-0.4.1/orig-5.0.3/README b/LuaSL/testLua/yueliang-0.4.1/orig-5.0.3/README deleted file mode 100644 index e64bf50..0000000 --- a/LuaSL/testLua/yueliang-0.4.1/orig-5.0.3/README +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | orig-5.0.3 | ||
2 | |||
3 | This is a straightforward port of the Lua 5.0.3 front end (lexical | ||
4 | analyzer, parser, code generator, binary chunk dumper.) | ||
5 | |||
6 | The front end files are: | ||
7 | |||
8 | lopcodes.lua opcode definition | ||
9 | lzio.lua input streams | ||
10 | llex.lua lexical analyzer | ||
11 | lparser.lua parser | ||
12 | lcode.lua code generator | ||
13 | ldump.lua binary chunk dumper | ||
14 | |||
15 | Status: operational, passes all current tests (non-exhaustive) | ||
16 | |||
17 | Major test scripts are: | ||
18 | |||
19 | test/test_llex.lua exercises test cases | ||
20 | test/test_lparser2.lua exercises test cases | ||
21 | |||
22 | luac.lua is a clone of Lua 5.0.3's luac.lua, except that it generates a | ||
23 | binary chunk using Yueliang's front end implementation. | ||
24 | |||
25 | Note that performance is not a consideration. The code tries to stay | ||
26 | faithful to its C roots, so that if you were to do anything using this | ||
27 | codebase, backporting the changes to C will be easy. As such, this | ||
28 | codebase is meant for learning or prototyping purposes. | ||
29 | |||
30 | Many parameters are unused, because call arguments are retained as far | ||
31 | as possible. Changes and deletions are described wherever possible, but | ||
32 | documentation of changes is not comprehensive. | ||
33 | |||
34 | These files will stay faithful to the equivalent C files or modules in | ||
35 | Lua 5.0.3. For rewrites or new features, a new directory will be created | ||
36 | and a different set of files maintained. For Lua 5.1, a new directory | ||
37 | will be created. | ||
38 | |||
39 | The test directory has several primitive test scripts. Much better | ||
40 | testing is planned. Eventually, the codebase will be validated using | ||
41 | automated tests, so that any changes that breaks the system can be | ||
42 | caught easily. | ||
43 | |||
44 | The tools directory has a call graph generator, showing what gets | ||
45 | called. Specific modules and functions can be monitored, and some | ||
46 | parameters and return values are shown. This is a demonstration of the | ||
47 | flexibility and ease of manipulation of using a relatively inefficient | ||
48 | global table scheme. | ||
49 | |||
50 | For Lua 5.0.2, see Yueliang 0.1.3, which was the last release of Lua | ||
51 | 5.0.2 material. | ||