[Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Oct 22, 2001 at 12:44:05PM -0700, Arien Malec wrote:
> Here's another BNF diagram for the proposed language.
>
> TODO:
>
> 1) Attribute value (int, string, int list, string list, directory, object
> identifier, object identifier list, more?)
> 2) help, show, control commands
>
> Some notes:
>
> 1) Objects have object idenfiers, distinct from name_orig
> 2) All commands are newline terminated BUT a syntactically correct unclosed
> paren will force the parser into multi-line mode until the paren is closed
> (Compare bash, etc.)
>
> Examples:
>
> set foo "bar"
Is 'set foo="bar"' also possible?
> with advance.railroad (
> req1 road_building,
> req2 steam_engine,
> name "Railroad")
> # Note that paren must be on the same line as the start of the command
> # Note that road_building is an identifier, not a name
So we really need this? Shouldn't "steam_engine" be
"advance.steam_engine"? What about lists like:
with advance.railroad (
req [road_building, steam_engine]
name "Railroad")
?
What is the purpose of the "with" command? Setting? If yes, can we use
"=" for this?
> create unittype.armor
> # Create a new unittype, with default values (i.e., warrior)
> # Default name is identifier, with underscores replaced by space, and
> # words with init caps
I can also think of objects which are "incomplete". So a "create
unittype.armor" is incomplete until you set certain key properties (it
may also possible that all properties are key properties).
> create unittype.god (
> attack = 100000,
> defense 100000,
I would like to require "=" always.
> vision_range = 1000,
> move_rate = 1000,
> hitpoints 100000,
> build_cost = 100000000,
> pop_cost = 10000)
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Python 2.0 beta 1 is now available [...]. There is a long list of new
features since Python 1.6, released earlier today. We don't plan on
any new releases in the next 24 hours."
-- Jeremy Hylton at Slashdot
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), (continued)
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Arien Malec, 2001/10/19
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Justin Moore, 2001/10/19
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Raimar Falke, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Daniel Sjölie, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Daniel L Speyer, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Justin Moore, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Raimar Falke, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Arien Malec, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Raimar Falke, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Arien Malec, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch),
Raimar Falke <=
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Daniel L Speyer, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Raimar Falke, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Daniel L Speyer, 2001/10/22
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Justin Moore, 2001/10/22
[Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs), Daniel L Speyer, 2001/10/05
- [Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs), Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs), Reinier Post, 2001/10/06
- [Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs), Daniel L Speyer, 2001/10/06
- [Freeciv-Dev] semi-static typing in server config (was: Re: Split patch (was Re: [RFC PATCH] init_techs)), Daniel L Speyer, 2001/10/08
- [Freeciv-Dev] Re: semi-static typing in server config (was: Re: Split patch (was Re: [RFC PATCH] init_techs)), Raimar Falke, 2001/10/08
|
|