Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch)
Home

[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]
To: Arien Malec <arien_malec@xxxxxxxxx>
Cc: Justin Moore <justin@xxxxxxxxxxx>, Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 Oct 2001 23:04:53 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

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


[Prev in Thread] Current Thread [Next in Thread]