luajit: add page, lua: update page (#10206)

pull/23/head
Lena 2023-05-17 12:14:45 +02:00 committed by GitHub
parent 5c745629c2
commit 56c232b361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View File

@ -9,7 +9,7 @@
- Execute a Lua script: - Execute a Lua script:
`lua {{script_name.lua}} {{--optional-argument}}` `lua {{path/to/script.lua}} {{--optional-argument}}`
- Execute a Lua expression: - Execute a Lua expression:

17
pages/common/luajit.md Normal file
View File

@ -0,0 +1,17 @@
# luajit
> A just-in-time compiler (JIT) for the Lua programming language.
> See also: `lua`.
> More information: <https://luajit.org/luajit.html>.
- Start an interactive Lua shell:
`luajit`
- Execute a Lua script:
`luajit {{path/to/script.lua}} {{--optional-argument}}`
- Execute a Lua expression:
`luajit -e '{{print("Hello World")}}'`