# lua-windows **Repository Path**: jhembed/lua-windows ## Basic Information - **Project Name**: lua-windows - **Description**: lua脚本解释器和编译器,适用于windows运行环境。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-08-25 - **Last Updated**: 2024-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lua脚本解释器和编译器 --- 使用lua源码包版本5.4.4在windows下编译出的可执行文件,其中:lua.exe为解释器,luac.exe为编译器。 ### 使用方法 如果你是逐条进行编写程序,那么首先双击lua.exe运行,然后逐条输入lua代码即可: ![解释器](./lua.png) 如果你是编译整个lua脚本文件,例如你的脚本文件是`test.lua`,那么在命令行下运行以下命令进行编译: ``` luac.exe -o test.luac test.lua ``` 其中,test.luac是编译输出生成的文件,可自定义更改名称。 最后输入以下命令运行编译好的test.luac: ``` lua.exe test.luac ``` ![编译器](./luac.png) ![源文件](./test.png)