rules: factor out the function to parse a rules file
drwxr-xr-x - .azure-pipelines
-rw-r--r-- 1145 .gitignore
-rw-r--r-- 5536 .uncrustify.cfg
-rw-r--r-- 10142 LICENSE
-rw-r--r-- 14637 NEWS
-rw-r--r-- 1807 PACKAGING
-rw-r--r-- 2194 README.md
-rw-r--r-- 778 azure-pipelines.yml
drwxr-xr-x - bench
drwxr-xr-x - doc
drwxr-xr-x - fuzz
-rw-r--r-- 16478 meson.build
-rw-r--r-- 1179 meson_options.txt
drwxr-xr-x - scripts
drwxr-xr-x - src
drwxr-xr-x - test
-rw-r--r-- 165 xkbcommon-x11.map
-rw-r--r-- 303 xkbcommon-x11.pc.in
-rw-r--r-- 2569 xkbcommon.map
-rw-r--r-- 231 xkbcommon.pc.in
drwxr-xr-x - xkbcommon