[Freeciv-Dev] Re: Inheritance of fields in rulesets
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Artur Biesiadowski wrote:
> I understand that maybe you do not think that it is necessary, but I
> would just feel a lot better, if is same good to you, maybe my way can
> be pursued ? :) Anyway, parser needs major rewrite anyway, to handle
> templates/inheritance so changing few other things is not a problem.
Actually, I don't see that the lowlevel parser would need
to be modified much at all. Your suggestion was basically
a set of "normal" sections with entries, except that some
meta-information is contained in some of the section names.
Eg:
[unit fighter extends air]
is handled fine by the parser, giving a section with the
name "unit fighter extends air". Code which uses the registry
is free to parse that name and derive information from it.
-- David
|
|