A command-line utility written in C that parses simple key-value configuration files.
- Parses configuration settings line by line.
- Stores key-value pairs dynamically using a custom linked list.
- Safely manages memory by allocating and freeing strings and nodes.
- Utilizes a modern C build setup with CMake and Ninja.
Included in this project is a file named file.config. This is strictly a dummy test file provided so you can quickly see how the parser works out of the box. It contains some sample key-value pairs. You can safely modify it or point the program to your own custom configuration files instead.
You can build and run this project either by using the provided command runner (just) or by running the CMake commands manually.
If you have just installed, building and running the project is streamlined.
Build the project:
just buildRun the project:
just run file.configClean up build artifacts:
just cleanBuild the project:
cmake -B build -G Ninja -S .
cmake --build buildRun the project:
./build/parser file.config