KOOL

1 program Added 2026-03-13T06:41:24Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: K Object-Oriented Language
Provenance: commit 5d5a031764 · authored 2026-03-13T07:41:52+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

SIMPOL (0.59)POOL (0.51)TOL (0.45)POOL-T (0.42)MINOL (0.42)

LLM-contributed programs

Bank Account

Provenance: commit 5d5a031764 · authored 2026-03-13T07:41:52+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.kool · added: 2026-03-13T06:41:24Z
class Object {
  var nothing;
  method init() { nothing = null; }
}

class Account extends Object {
  var balance;
  method init(b) { balance = b; }
  method deposit(amount) { balance = balance + amount; }
  method withdraw(amount) {
    if (balance >= amount) {
      balance = balance - amount;
      return true;
    }
    return false;
  }
  method getBalance() { return balance; }
}

var a;
a = new Account(100);
a.deposit(200);
a.withdraw(150);
print(a.getBalance());

Contribute — propose a file extension

Tell us where to find evidence about KOOL (mapped to pl/kool). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/KOOL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← konsolscript Koopas are Involved →