org.holtz.zoe
Class Zoel

java.lang.Object
  extended by java.io.StreamTokenizer
      extended by org.holtz.zoe.Zoel

public class Zoel
extends java.io.StreamTokenizer

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 | $[$]Register
 
Here is an example Zoel program that follows larger conspecifics and preys on non-conspecifics.

See Also:
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

StatementTerminator

public static final char StatementTerminator
See Also:
Constant Field Values
Constructor Detail

Zoel

public Zoel(java.io.Reader text)