-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eglinux <eg@mac.local>
- Loading branch information
Eglinux
committed
Jul 7, 2023
1 parent
b26ea9d
commit 10a7247
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# eglinux | ||
www.eglinux.com source code | ||
www.eglinux.com source code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Lua | ||
description: 上善若水,水善利万物而不争! | ||
icon: simple/lua | ||
--- | ||
|
||
# Lua | ||
|
||
上善若水,水善利万物而不争! | ||
|
||
``` shell | ||
╭─eg@mac ~ | ||
╰─$ lua | ||
Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio | ||
> print("Hello, world") | ||
Hello, world | ||
> | ||
``` | ||
|
||
Lua 保留字: | ||
|
||
``` lua | ||
and break do else elseif | ||
end false goto for function | ||
if in local nil not | ||
or repeat return then true | ||
until while | ||
``` | ||
|
||
Lua 基本类型: | ||
|
||
``` shell | ||
╭─eg@mac ~ | ||
╰─$ lua | ||
Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio | ||
> type(nil) | ||
nil | ||
> type(true) | ||
boolean | ||
> type(10.4 * 3) | ||
number | ||
> type("Hello world") | ||
string | ||
> type(io.stdin) | ||
userdata | ||
> type(print) | ||
function | ||
> type(type) | ||
function | ||
> type({}) | ||
table | ||
> type(type(X)) | ||
string | ||
> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,6 +215,8 @@ nav: | |
- python/index.md | ||
- Qt: | ||
- qt/index.md | ||
- Lua: | ||
- lua/index.md | ||
|
||
|
||
copyright: > | ||
|