[Freeciv-Dev] Re: do you really want to work on the ~ (was: registry)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Dear diary, on Wed, Dec 05, 2001 at 05:01:13PM CET, I got a letter, where
Reinier Post <rp@xxxxxxxxxx> told me, that...
> Now the ruleset format is undocumented and inadequate - it doesn't really
> support nested structures. So perhaps it's better to use libxml2? libxml2
> depends on libm (which Freeciv doesn't depend on I think) and libz, which
> Freeciv depends on for compression, but nothing else.
I think we don't need XML at all. It at least looks much less readable and
comfortablee for me. I would be completely happy with C-like ruleset syntax -
i.e.:
building {
id = "Airport";
name = _("Airport");
tech_req = "Radio";
effect {
type = "Unit_Veteran";
range = "City";
aff_unit = "Air";
}
effect {
type = "Airlift";
range = "City";
}
helptext = _("Blablabla\
blabla\n\nbla\
blah!");
}
It would be IMHO much cleaner than current one, and actually not so much
different. As a parser, I don't see anything particulary wrong on flex+bison.
Easy to use, portable, effecient.
--
Petr "Pasky" Baudis
UN*X programmer, UN*X administrator, hobbies = IPv6, IRC, FreeCiv hacking
.
"A common mistake that people make, when trying to design
something completely foolproof is to underestimate the
ingenuity of complete fools."
-- Douglas Adams in Mostly Harmless
.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/
- [Freeciv-Dev] registry, Andrew Sutton, 2001/12/05
- [Freeciv-Dev] do you really want to work on the ~ (was: registry), Reinier Post, 2001/12/05
- [Freeciv-Dev] Re: do you really want to work on the ~ (was: registry), Petr Baudis, 2001/12/05
- [Freeciv-Dev] Re: do you really want to work on the ~ (was: registry), Andrew Sutton, 2001/12/05
- [Freeciv-Dev] Re: do you really want to work on the ~ (was: registry), Jules Bean, 2001/12/05
- [Freeciv-Dev] Re: do you really want to work on the ~ (was: registry), Reinier Post, 2001/12/05
- [Freeciv-Dev] Re: do you really want to work on the ~ (was: registry), Gregor Zeitlinger, 2001/12/05
- [Freeciv-Dev] Re: do you really want to work on the ~ (was: registry), Jules Bean, 2001/12/06
|
|