Class Zoel

  extended by
      extended by 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 | $[$]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
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
Constructor Summary
Zoel( text)
Method Summary
Methods inherited from class
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
See Also:
Constant Field Values
Constructor Detail


public Zoel( text)