]> git.ipfire.org Git - pakfire.git/commit
libpakfire: parser: Add compatibility for older pakfire files
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 May 2019 17:30:09 +0000 (18:30 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 May 2019 17:30:09 +0000 (18:30 +0100)
commita714578c3ecbe0de62b67bd80b7e3866467cb2b8
tree42a5df6434bfd830de665de718071596f11420a7
parentb7a1fdadd91e0dbeee5c561567916765de3a33d4
libpakfire: parser: Add compatibility for older pakfire files

This patch moves the keyword handling out of the parser and puts
it into the lexer where the "define" keyword is added where it is
needed.

That way, we have a clear definition of a clean syntax without
any shift/reduce or reduce/reduce errors, but remain compatible
to the current pakfire files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y
src/libpakfire/parser/scanner.l