Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.09 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.09 KB

uci2

uci2 is an Open Source library for parsing OpenWrt UCI (Unified Configuration Interface) files. The parser is implemented using Flex and Bison and the result is an Abstract Syntax Tree (AST) representing the UCI file.

Building and Installing

To build the library use the following commands:

mkdir build
cd build
cmake ..
make

To build the library with tests enabled use the following commands:

mkdir build
cd build
cmake -DENABLE_TESTS=ON ..
make

To install the library use the following command:

sudo make install

If you made changes to the uci2_cfg.l and/or uci2_cfg.y files you need to regenerate the lexer and parser code by running the script scripts/gen_grammar.sh which runs the relevant flex and bison commands and then you can rebuild and reinstall the library using the steps above.

API documentation

The uci2 API documentation is available here.