https://github.com/lostjared/libmxl
Library to handle simple configuration text files with flex & bison
https://github.com/lostjared/libmxl
Last synced: 8 months ago
JSON representation
Library to handle simple configuration text files with flex & bison
- Host: GitHub
- URL: https://github.com/lostjared/libmxl
- Owner: lostjared
- License: lgpl-3.0
- Created: 2017-12-06T03:38:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-12T18:28:11.000Z (over 8 years ago)
- Last Synced: 2025-10-09T10:33:10.281Z (8 months ago)
- Language: C++
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libMXL
Simple tagging language use it like this:
Cateogry =>
Key = "value"
Width = "200"
Height = "400"
User =>
firstname = "Jared"
lastname = "Bruni"
Use the the wrapper class like htis
mxl::MXL *parser = mxl::MXL::parseMXL("code.mxl");
don't forget to delete parser when done or use a smart pointer
See the example in test folder to see how to use the MXL class.
Or use it like this:
mxl::MXL parser;
if(!parser.loadFromFile("test.mxl")) {
std::cout << "Failed to load!\n";
}
parser.echoTokens();