BON

1 program Added 2026-03-10T14:18:54Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Business Object Notation
Provenance: commit 31fda5daef · authored 2026-03-10T15:20:19+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/business-object-notation
LLM (this repo) · 1Pldb

Related languages

RON (0.41)PMX (0.25)Z notation (0.24)HOCON (0.22)GUIDO (0.22)

LLM-contributed programs

Bank Account Class Charts

Provenance: commit 31fda5daef · authored 2026-03-10T15:20:19+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.bon · added: 2026-03-10T14:18:54Z
class_chart ACCOUNT
  description: "A simple bank account."
  query
    "What is the balance?", Balance: REAL
    "What is the account holder name?", Holder: STRING
    "Is the account active?", Active: BOOLEAN
  command
    "Deposit the given amount.", Deposit (amount: REAL)
    "Withdraw the given amount.", Withdraw (amount: REAL)
    "Close the account.", Close
  constraint
    "Balance is non-negative", Balance >= 0.0
end

class_chart BANK
  description: "A financial institution managing accounts."
  query
    "How many accounts does the bank have?", Account_count: INTEGER
    "Does the bank hold a given account?", Has_account (id: INTEGER): BOOLEAN
  command
    "Open a new account for the given holder.", Open_account (holder: STRING)
    "Close a specific account.", Close_account (id: INTEGER)
  constraint
    "Account count is non-negative", Account_count >= 0
end

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about BON (mapped to pl/business-object-notation). 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/BON/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Bomberman bon-programming-language →