Skip to content
Snippets Groups Projects
Commit 1707ebef authored by Alexander Turenko's avatar Alexander Turenko Committed by Alexander Turenko
Browse files

config: add expression.validate

It verifies AST invariants:

* comparison operators have to be applied to version literals and
  variables
* logical operators have to be applied to boolean expressions
* the root AST node should be a boolean expression

It also verifies variables:

* variables are referenced by the given expression have to be provided
* provided variables have to contain a three component versions

Part of #9452

NO_DOC=It is a supplementary module for config's conditional section
       predicates. To be documented in the last commit of the series.
NO_CHANGELOG=see NO_DOC
parent e095bd49
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment