Module kconfig_parser::ast::structs

source ·
Expand description

This file contains the pub structures necessary for the Kconfig AST as defined by the Kconfig language.

Structs

A Config structure represents the internals of the config element itself, without dependencies.
A ConfigType is part of an instance, which can also have dependencies
A dependency can be a name in the form of a string or a set of other dependencies either to be orred or to be anded
A range is a definition where an int or hex value is not allowed to be lower than LHS and not to be higher than RHS

Enums

A Config structure should have a type. Because types can change depending on a dependency (typically through an if expression)
An expression can be a symbol, a comparison expression, a negation, a subexpression (with parentheses) and an ‘bitwise and’ or ‘bitwise or’ expression. It can also be a macro resulting into a valid value.