Lua Parser written in pure C++
lua-parse is a project aimed at providing a robust Lua parser implemented in C++. This project leverages the Lua C API to load and execute Lua scripts, and it includes XML handling capabilities for configuration purposes.
- Load and execute Lua scripts.
- Handle multiple Lua scripts simultaneously.
- XML configuration handling.
- Cross-platform support with Visual Studio project files.
- lua: Contains Lua source files.
- xml: Contains XML handling source files.
- CCoreLua.cpp: Implementation of the core Lua handling class.
- CCoreLua.h: Header file for the core Lua handling class.
- CXmlHandler.cpp: Implementation of the XML handler class.
- CXmlHandler.h: Header file for the XML handler class.
- main.cpp: Entry point of the application.
- main.h: Header file included in the main application.
- Visual Studio solution file for building the project.
- Visual Studio 2017 or later.
- Lua development libraries.
- XML parsing libraries.
-
Clone the repository:
git clone https://github.com/yourusername/lua-parse.git cd lua-parse -
Open the
LuaParse.slnfile in Visual Studio. -
Build the solution by selecting
Build > Build Solutionfrom the menu.
-
After building the project, navigate to the output directory (e.g.,
DebugorRelease). -
Run the executable:
./LuaParse
To load a Lua script, place your .lua files in the scripts directory and call the LoadScript method from the CCoreLua class.
The application uses XML files for configuration. Ensure your XML files are correctly formatted and placed in the appropriate directory.
Contributions are welcome! Please fork the repository and submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.