As Lua matures, it becomes more widely used in servers. I want to develop this, so I began to study in Lua.
To learn a new language, you should first compile, install, deploy, and then practice the development debugging environment ... However, I do not have the project to do ah, I just want to familiarize themselves with the LUA grammar, not necessarily so complicated. So we started looking for a simple LUA IDE. Pick to pick, choose a Zerobrane Studio, because it is small, you can single step debugging. In addition, there are not so many choices under Linux, I do not want to just start learning with a sublime text to write a Xxx.lua and then to the shell to perform Lua Xxx.lua.
Zerobrane Studio is free and open source, but if it's for work and conditional, you can pay for it. Download the corresponding installation package in http://studio.zerobrane.com/. Install the package as zerobranestudioedupack-1.00-linux.sh under Linux and run the installation directly.
If it goes well, search for zero in the dash to see Zerobrane studio.
Zerobrane Studio as a lightweight IDE is very good, at least to learn that you can put aside the environment deployment, you can also step through the stack to view ...
Zerobrane Studio comes with the compiled LUA binaries, which is why LUA is also possible to run and debug Lua in the system. After installing the files in Opt/zbstudio, as you can see in/opt/zbstudio/bin/linux/x64, there are Lua, Lua52, lua53 three LUA parsers, indicating that ZBS supports these three versions, in the menu Project/lua The interpreter can be selected. You can set the Font, tab indent, highlight, and shortcut keys in edit/preferences. If you already have LUA installed, you can also specify your own LUA path here. But this is a LUA configuration file, refer to its documentation.
Lua, as an adjunct script, rarely runs on its own. Therefore, if you are developing as a project, Zbs clearly does not provide a LUA library, at least the header files are not. I have not yet tested ZBS if you can debug other projects like Decode.
The above is the entire contents of this article, I hope to be able to learn the LUA grammar help.