<world statement>
<alias statement>
<rules statement>
<setup statement>
Syntax
world <width> <height> <fill-char> <alphabet-size> <alphabet-char>...
Arguments
| Name | Type | Description |
|---|---|---|
| width | number |
world width |
| height | number |
world height |
| fill-char | symbol |
start fill char |
| alphabet-size | number |
size alphabet for world |
| alphabet-char | symbol |
sequence symbols with length equal alphabet-size (view example) |
Syntax
alias
<set statement>
...
end
Maybe empty
Syntax
set <alias-name> <alias-value>
Arguments
| Name | Type | Description |
|---|---|---|
| alias-name | phrase |
alias name |
| alias-value | symbol |
alias value |
Syntax
rules <rule-name>
<state statement>
...
end
Argument
| Name | Type | Description |
|---|---|---|
| rule-name | phrase |
used rule type, maybe count or pattern |
Syntax
count
state <before-char> to <after-char> if
<may statement>
...
end
pattern
state <before-char> to <after-char> if <pattern statement> end
Arguments
| Name | Type | Description |
|---|---|---|
| before-char | symbolphrase |
the symbol that will be changed, maybe alias |
| after-char | symbolphrase |
The symbol he will become, maybe alias |
Syntax
<need-char> may <quantity>...
or
<need-char> nomay <quantity>...
Arguments
| Name | Type | Description |
|---|---|---|
| need-char | symbolphrase |
requiritur symbol or alias |
| quantity | number |
set of maybe count neighboors, set maybe empty |
if is nomay, then set of maybe count neighboors equal
$$
\set{ 0, 1, \cdots, 8 } \setminus quantity
$$
where \ - set minus (Wikipedia)
Syntax
<pattern-char> <pattern-char> <pattern-char> <pattern-char> <pattern-char> <pattern-char> <pattern-char> <pattern-char>
equal cell in Moore neighborhood
NW N NE W E SW S SE
Argument
| Name | Type | Description |
|---|---|---|
| pattern-char | symbolphrase |
maybe set via symbol or keyword any or alias therefore, it doesn't matter what the symbol is |
Syntax
setup
<command>
...
end
See also list of commands