BRY COMPUTE 0.1.0 — DRAFT LANGUAGE SPECIFICATION 1. SOURCE UTF-8 text. Statements separated by semicolons or newlines. // comments. Bry tokens: 1..9, +, +1..+9, ++, ++1..++6. Symbolic names are dot-separated tokens. @+1 is one token (K); @+.1 is two (JA). Whitespace is required before a binary plus or numeric literal following a symbolic name when otherwise ambiguous. 2. GRAMMAR (EBNF; newline and semicolon are SEP) program = { SEP | statement SEP } [ statement ] ; block = "[" program "]" ; statement = ID ":=" expr | FN "(" [ ID { "," ID } ] ")" block | ">" "(" expr ")" | "<" expr | "!" "(" expr ")" | "?" "(" expr ")" block [ ":" block ] | "~" "(" expr ")" block | "~?" "(" expr ")" block ; expr = Pratt expression using literals, variables, calls, arrays, grouping, indexing and unary/binary operators. literal = finite IEEE-754 number | JSON string | true | false | null ; array = "{" [ expr { "," expr } ] "}" ; call = ( FN | BUILTIN ) "(" [ expr { "," expr } ] ")" ; ID = "@" name ; FN = "::" name ; name = token { "." token } ; BUILTIN = ":" lowercase-name ; Precedence low to high: ||, &&, == !=, < > <= >=, + -, * / %, unary ! -, postfix indexing. Binary operators left associative. && and || short circuit. 3. SEMANTICS Dynamically typed: finite number, string, boolean, null, array. Strict boolean conditions. Numeric arithmetic requires numbers; + also concatenates two strings. Equality is strict (arrays by identity). Indexing is zero-based, strings indexed by UTF-16 code unit. Assignments update nearest existing lexical binding, otherwise create in current function/program scope. Blocks share scope. Functions capture definition environment and parameters shadow outer bindings. A function without return produces null. Definitions execute sequentially; recursion works after binding. Arrays are immutable via language operations; :push returns a new array. Repeat count must be a nonnegative integer; while reevaluates condition. Assertions require true. Return is legal only inside functions. Standard functions: :len, :sum, :push, :range, :abs, :sqrt, :floor, :str, :type. No implicit network, filesystem, host language evaluation, clock, or randomness. The interpreter runs in a dedicated browser Worker. Limits: 64k source characters, 30k tokens (additional source bound), 100 syntax nesting, 50k execution steps, 64 function call depth, 500 output lines, 64k output characters, 3-second IDE watchdog. These are implementation limits, not proofs of resource safety. 4. EXAMPLE ::1(@1) [ ? (@1 <= 1) [ < 1 ] < @1 * ::1(@1 - 1) ] >(::1(10)) 5. STATUS Prototype, not a stable or formally verified language. No compiler, static types, native executable, module system, external I/O, concurrency, cryptographic standard library or performance parity claims yet. The interpreter is implemented in JavaScript; Bry source is parsed and evaluated as its own AST, never passed to eval or Function.