1 Star 0 Fork 0

万里 / lua-1.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

This is Lua 1.0. It was never publicly released. This code is a snapshot of the status of Lua on 28 Jul 1993. It is distributed for historical curiosity to celebrate 10 years of Lua and is hereby placed in the public domain.

There is no documentation, except the test programs. The manual for Lua 1.1 probably works for this version as well.

The source files for the lexer and parser have been lost: all that is left is the output of lex and yacc. A grammar can be found inside y_tab.c in yyreds.

The code compiles and runs in RedHat 5.2 with gcc 2.7.2.3. It may not run in newer systems, because it assumes that stdin and stdout are constants, though ANSI C does not promise they are. If make fails, try using the fixed modules provided in the "fixed" directory. To see the differences (which are really quite minor), do "make diff".

To see Lua 1.0 in action, do "make test". (The last test raises an error on purpose.)

Enjoy!

-- The Lua team, lua@tecgraf.puc-rio.br

参考

空文件

简介

Lua语言1.0版本,写于1993年。一共6092行C代码实现。1993年写的代码,至今稍微修改下就能编译,可见底层语言的生命延续能力是多么顽强。这也告诉我们,学习计算机,就应该学习这些本质的知识,哪怕过了这么多年,依然有生命力,依然值得学习。 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/wanliofficial/lua-1.0.git
git@gitee.com:wanliofficial/lua-1.0.git
wanliofficial
lua-1.0
lua-1.0
main

搜索帮助