config language

ron minnich rminnich at lanl.gov
Tue May 20 08:40:01 CEST 2003


On Mon, 19 May 2003, Greg Watson wrote:

> Defining the tree from bottom-up is somewhat non-intuitive and 
> potentially confusing. It seems more natural to define the tree 
> structure top-down as follows:
> 
> mainboard vendor/model
>    cpu p5
>    southbridge vendor/model
>    end
>    southbridge vendor/model2
>      superio vendor/model
>        ...config...
>      end
>    end
> end

OH, ok, you win. I had thought of this but hate the idea of writing a 
parser ... string handling in C is like walking on broken glass.


> mainboard motorola/sandpoint
>    pmc altimus/mpc7500
>      northbridge motorola/mpc107
>    end
>    southbridge windbond/w83c553
>      superio NSC/pc97307
>        com1={1}
>        com2={1}
>        floppy=0
>        lpt=1
>        keyboard=1
>        hwmonitor=1
>      end
>    end
>    nvram
>    flash
> end

agreed, it's pretty. But NOBODY is allowed to suggest lexical scoping from 
indentation. That's not allowed :-)

Greg, parser in the usual lex/yacc/C mode or .... I'll see if anybody's 
got parsers written in python.

ron




More information about the coreboot mailing list