From 56c232b361ecd1557edfde4daf3a900272f5dd7c Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Wed, 17 May 2023 12:14:45 +0200 Subject: [PATCH] luajit: add page, lua: update page (#10206) --- pages/common/lua.md | 4 ++-- pages/common/luajit.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 pages/common/luajit.md diff --git a/pages/common/lua.md b/pages/common/lua.md index fb90e77dd..2975dd265 100644 --- a/pages/common/lua.md +++ b/pages/common/lua.md @@ -9,8 +9,8 @@ - Execute a Lua script: -`lua {{script_name.lua}} {{--optional-argument}}` +`lua {{path/to/script.lua}} {{--optional-argument}}` - Execute a Lua expression: -`lua -e '{{print( "Hello World" )}}'` +`lua -e '{{print("Hello World")}}'` diff --git a/pages/common/luajit.md b/pages/common/luajit.md new file mode 100644 index 000000000..8c3f33ddf --- /dev/null +++ b/pages/common/luajit.md @@ -0,0 +1,17 @@ +# luajit + +> A just-in-time compiler (JIT) for the Lua programming language. +> See also: `lua`. +> More information: . + +- 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")}}'`