[Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12873 >
Vasco Alexandre da Silva Costa wrote:
> So an answer is: Reverse Polish Notation aka postfix notation. Like this:
>
> sreqs =
> { "type", "name", "range"
> "Tech", "Electronics", "Player"
> "Building", "Factory", "City"
> "Operator", "AND"
> "Terrain", "Mountains", "Adjacent"
> "Special", "River", "Adjacent"
> "Operator", "OR"
> "Operator", "AND"
> }
>
> Super reqs. You can still store the expression as a list, and with a
> stack you can calculate the expression pretty easily.
Not that I'm in favor of such craziness but prefix notation would be
better. Just reverse the above list and you have prefix notation.
-jason
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings,
Jason Short <=
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Jason Short, 2005/04/23
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Brian Dunstan, 2005/04/23
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Benedict Adamson, 2005/04/24
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Benedict Adamson, 2005/04/24
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Benoit Hudson, 2005/04/24
- [Freeciv-Dev] (PR#12873) OR Requirements for Buildings, Jason Short, 2005/04/25
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Vasco Alexandre da Silva Costa, 2005/04/25
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Vasco Alexandre da Silva Costa, 2005/04/25
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Benedict Adamson, 2005/04/25
- [Freeciv-Dev] Re: (PR#12873) OR Requirements for Buildings, Jason Short, 2005/04/25
|
|