OSDN Git Service

minikconfig: add AST
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 Jan 2019 06:55:57 +0000 (14:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Mar 2019 20:45:53 +0000 (21:45 +0100)
commit53167f562693981dbc18fb0071df4667dabdf7b6
tree4617d0ae968dbe6edb4e745ab89db0156325d481
parentd4fdccadbab5043c442b00dbf54555873c6bee7b
minikconfig: add AST

Add Python classes that represent the Kconfig abstract syntax tree.
The abstract syntax tree is stored as a list of clauses.  For example:

    config FOO
        depends on BAR
        select BAZ

is represented as three clauses:

    FOO depends on BAR
    FOO default n
    select BAZ if FOO

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20190123065618.3520-24-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/minikconf.py