git @ Cat's Eye Technologies Castile / master eg / deadfish.castile
master

Tree @master (Download .tar.gz)

deadfish.castile @masterraw · history · blame

fun main() {
  a = 0;
  c = "";
  while true {
    if a == 256 or a < 0 {
	a = 0;
    }
    c = input(">> ");
    if c == "i" {
        a = a + 1;
    } else if c == "d" {
        a = a - 1;
    } else if c == "s" {
        a = a * a;
    } else if c == "o" {
        print(str(a));
    }
  }
}