|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.StreamTokenizer org.holtz.zoe.Zoel
public class Zoel
The programming language encoded in the Genotype
of a Bug
.
See Operator
for the semantics of the operators in Zoel
.
See Register
for the Zoel
virtual machine registers that can be passed to an Operator
.
Genotype ::== Gene ... Gene ::== [ When StatementList ] Do StatementList StatementList ::== { Statement , ... } Statement ::== [ Label: ] Expression Expression ::== Operation | StatementList | Value Operation ::== Operator [Expression] Value ::== StringLiteral | Number | $[$]RegisterHere is an example Zoel program that follows larger conspecifics and preys on non-conspecifics.
Operator
,
Register
Field Summary | |
---|---|
static char |
StatementTerminator
|
Fields inherited from class java.io.StreamTokenizer |
---|
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype |
Constructor Summary | |
---|---|
Zoel(java.io.Reader text)
|
Method Summary |
---|
Methods inherited from class java.io.StreamTokenizer |
---|
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char StatementTerminator
Constructor Detail |
---|
public Zoel(java.io.Reader text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |