Repository navigation
Phase diagram
cLogos is a stack of transformations, each with a strict responsibility.
Invariant!
Nothing is allowed to "reach backward" into a previous phase. -> Forward flow only.
TEXT
↓
PARSING (syntax + infix + structure)
↓
LOGO EVALUATION (objects, procedures, runtime)
↓
VALUE SPACE (wd, list, array, object)
↓
VALUE → RNODE (semantic normalization)
↓
RENDERING (context-sensitive presentation)
↓
OUTPUT TEXT
Each layer corresponds to a cognitive register
| Phase | Cognitive mode |
|---|---|
| Syntax | symbolic manipulation |
| Evaluation | procedural thinking |
| RNODE | structural reflection |
| Rendering | perceptual interpretation |
with [[x 10] ~
[y 20]] ~
print sum :x ~
product :x :y
Responsibility:
- raw character stream
- infix + prefix mix
- indentation optional (editor help only)
Output: -> parse tree (syntax structure)
Responsibility: resolving
- line continuations (
~), - infix expansion (via tables + weights),
- grouping,
-
withblocks, - procedure calls
Output -> AST (Abstract Syntax Tree)
important:
- still not meaning
- just structured instructions
Berkeley Logo core layer -- Responsibility:
- object resolution
- procedure lookup
- variable binding
-
ask,talkto,self - inheritance (
kindof,oneof)
Output: -> evaluated values in Logo domain
Examples:
- words
- logo-lists
- logo-arrays
- logo-objects (dynamic) -> execution reality
value -> rnode
Responsibility: Convert semantic Logo values into:
- a uniform representation tree
- independent runtime behaviour
Output: -> RNODE tree
Invariants!!
RNODEs are snapshots, not live objects! They answer: "What is this thing as structure?" not: "What can it do?"
This is
render-node
Responsibility:
- convert RNODE -> string
- apply print-context
- apply list/array style rules
- apply separator rules
Output: -> final textual output
Including:
showprint- REPL output
- future GUI / turtle / visual syntax.
It is the only layer that touches the outside world.
Phase 1 (syntax) + Phase 2 (semantic binding)
Phase 1 only
Phase 1 (parser configuration only)
Phase 2 only (runtime semantics)
Phase 3 (bridge layer)
Phase 4 + 5
- RNODE must not influence evaluation
- rendering must not trigger computation
Berkeley layer must be blind to:
- indentation
- infix formatting
- print context
- visual context
- no object mutation inside RNODE
- no "live references" that change meaning during render
- resolved before evaluation
- never visible to Logo runtime
-
print-contextonly lives in Phase 4 - never earlier
🄯 2026 cLogos Initiative represented by Lispl-Wicht -- The textual content of this work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).