PBXB64 V23 language reference

Logo supported commands and scope

Standalone Logo uses Binary64 numbers, words, numeric/word/mixed lists, inferred procedures/control flow, console output and headless bitmap turtle operations. READLIST, MAP, analytic CSQRT$/CSIN$, exact GCD$ and several mixed-list/selector forms are explicit non-goals; all new controls remain unrun.

Status: experimental. Source basis: PBXB64/docs/LOGO_SCOPE.md and PBXB64/src/frontends/logo plus the published Logo learning page.

Back to language detailPBXB64 overviewDeutsch

Procedures / Prozeduren

NameSyntax / formScopeBoundary
TO ... ENDTO name :args ... ENDDefines a Logo procedure.Nested/duplicate/missing END forms are rejected.
OUTPUT STOPOUTPUT exprReturns from a procedure or stops it.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
MAKE LOCALMAKE "name valueBinds word/number variables and local scope.Unbound reads diagnose.

Control flow / Kontrollfluss

NameSyntax / formScopeBoundary
IF IFELSEIF cond [ ... ]Conditional execution.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
REPEATREPEAT n [ ... ]Counted repetition.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
FOREACHFOREACH :list [ ... ]Iteration over list/word values.List kind and selector constraints apply.

Words and lists / Wörter und Listen

NameSyntax / formScopeBoundary
WORD LIST FPUT LPUTWORD a b; LIST a bConstructs words/lists and adds elements.Mixed-list element constraints are documented and enforced in rejects.
FIRST LAST BUTFIRST BUTLAST ITEM COUNTFIRST valueSelects/counts word or list elements.ITEM index and COUNT operand kinds are constrained.
EQUALP MEMBERP EMPTY?EQUALP a bComparisons and membership/empty predicates.Word/number comparisons follow the declared contract.

Turtle / Turtle

NameSyntax / formScopeBoundary
FORWARD BACK RIGHT LEFTFORWARD nHeadless bitmap turtle movement.Bitmap/headless host limits apply.
SETPOS SETHEADING HOMESETPOS [x y]Position and heading operations.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
PENUP PENDOWN SETPC SETPENSIZE LABELPENDOWNPen and bitmap drawing state.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.

PBXB64 is part of the PBX-Compiler package. Free for private use, cleanly licensed for business.