AGRIPLOT
========

 A   utomaton
 G   rowth-
-R   ule
 I   terator and
PLOT ter

================================

# Comment; must be only thing on line.

Identifiers can be up to 32 characters long; they may
contain the characters A-Z, a-z, "_", "-" and "."

ENTITY_ID can be any one of SPECIES_ID, STAGE_ID, OBJECT_ID

Lists (1,2,3) must not contain spaces.

Strings "A\_ string." must not contain spaces. Use the "\_"
escape sequence.

================================

SYSTEM_ID = system{
  SYSTEM_ITEM
  SPECIES_ID = species{
    SPECIES_ITEM
    STAGE_ID = stage{
      STAGE_ITEM
    }
  }
  OBJECT_ID = object{
    OBJECT_ITEM
  }
}

SYSTATE_ID = init{
  system = SYSTEM_ID
  INIT_ITEM
}

SYSTATE_ID = iterate{
  init_state = SYSTATE_ID
  ITERATE_ITEM
}

plot{
  PLOT_ITEM
}

================================

SYSTEM_ITEM:
  base = SYSTEM_ID
  name = STRING
  world_size = (UINT, UINT)
  wrap = "none" / "xcyl" / "ycyl" / "torus" / "xmob" / "ymob" / "klein"

SPECIES_ITEM:
  base = SPECIES_ID
  name = STRING
  init_stage = STAGE_ID
  corpse = OBJECT_ID

STAGE_ITEM:
  base = STAGE_ID
  name = STRING
  duration = UINT
  next = STAGE_ID / "corpse"
  biomass = UINT
  size = UINT
  can_hide = BOOL
  hunts = (STAGE_ID, STAGE_ID, ...)
  eats = "light" / (OBJECT_ID, OBJECT_ID, ...)
  roam = UINT / "sessile" / "inf"
  breeds = STAGE_ID
  breed_range = UINT / "inf" / "roam"
  gestation = UINT
  max_brood = UINT / "inf"
  host = (STAGE_ID, STAGE_ID, ...)
  parasite_eats = BOOL / "kill"
  parasite_eat_amount = INT
  parasite_breeds = BOOL / "kill"

OBJECT_ITEM:
  base = OBJECT_ID
  name = STRING
  size = UINT / "corpse"
  hide = BOOL
  duration = UINT / "inf"
  init_mass = UINT / "corpse"

INIT_ITEM:
  light_level = UINT
  population = (ENTITY_ID, UINT)
  total_population = UINT
  rand_seed = UINT

ITERATE_ITEM:
  times = UINT
  until = (ENTITY_ID, UINT)

PLOT_ITEM:
  of = "all" / "species" / "stages" / "objects" / (ENTITY_ID, ...)
  in = SYSTATE_ID
  as = "none" / "table" / "graph" / "summary" / "include"
  to = "screen" / STRING

    Source: geocities.com/greyknight3/download

               ( geocities.com/greyknight3)