···11-# Superplan-26 Specification (v0)
22-33-## Overview
44-55-Superplan-26 is a modern reconstruction inspired by early high-level languages such as Superplan and ALGOL.
66-77-It is:
88-- procedural
99-- statically typed
1010-- deterministic
1111-- designed for terminal applications and system control
1212-1313-## Program Structure
1414-1515-```text
1616-PROGRAM NAME
1717-1818-<declarations>
1919-2020-BEGIN
2121- <statements>
2222-END
2323-```
2424-2525-## Types
2626-2727-### Primitive
2828-- INTEGER
2929-- BOOLEAN
3030-- STRING
3131-- JSON
3232-3333-### Composite
3434-```text
3535-ARRAY <TYPE> NAME[N]
3636-```
3737-3838-Example:
3939-```text
4040-INTEGER I
4141-STRING CMD
4242-JSON TL
4343-ARRAY STRING LINES[10]
4444-```
4545-4646-## Statements
4747-4848-### Assignment
4949-```text
5050-X = 10
5151-NAME = "hello"
5252-```
5353-5454-### Output
5555-```text
5656-WRITE("TEXT")
5757-WRITE(NAME)
5858-```
5959-6060-### Input
6161-```text
6262-NAME = READLINE()
6363-```
6464-6565-### Conditional
6666-```text
6767-IF X = 1 THEN
6868- WRITE("ONE")
6969-END
7070-```
7171-7272-### Loop (WHILE)
7373-```text
7474-WHILE TRUE DO
7575- CMD = READLINE()
7676-END
7777-```
7878-7979-### Loop (FOR)
8080-```text
8181-FOR I = 0 TO 10 STEP 1 DO
8282- WRITE("ROW")
8383-END
8484-```
8585-8686-### Procedure
8787-```text
8888-PROCEDURE SHOW(JSON TL)
8989-BEGIN
9090- WRITE("DATA")
9191-END
9292-```
9393-9494-### Call
9595-```text
9696-CALL SHOW(TL)
9797-```
9898-9999-### Stop
100100-```text
101101-STOP
102102-```
103103-104104-## Expressions
105105-106106-### Arithmetic
107107-- `+ - * /`
108108-109109-### Comparison
110110-- `= <> < <= > >=`
111111-112112-### Boolean
113113-- `AND OR NOT`
114114-115115-## Built-in Functions
116116-117117-### IO
118118-- `WRITE(STRING)`
119119-- `READLINE() -> STRING`
120120-121121-### JSON
122122-- `JSON_PARSE(STRING) -> JSON`
123123-- `JSON_STRINGIFY(JSON) -> STRING`
124124-- `JSON_GET(JSON, STRING) -> JSON`
125125-- `JSON_INDEX(JSON, INTEGER) -> JSON`
126126-- `JSON_LEN(JSON) -> INTEGER`
127127-- `JSON_TYPE(JSON) -> STRING`
128128-- `JSON_STRING(JSON) -> STRING`
129129-- `JSON_NUMBER(JSON) -> INTEGER`
130130-- `JSON_BOOL(JSON) -> BOOLEAN`
131131-- `JSON_IS_NULL(JSON) -> BOOLEAN`
132132-133133-### AT Proto Bridge
134134-- `ATP_LOGIN(STRING, STRING) -> BOOLEAN`
135135-- `ATP_TIMELINE(STRING) -> JSON`
136136-- `ATP_PROFILE(STRING) -> JSON`
137137-- `ATP_THREAD(STRING) -> JSON`
138138-- `ATP_POST(STRING) -> BOOLEAN`
139139-- `ATP_NOTIFICATIONS() -> JSON`
140140-141141-## Example
142142-143143-```text
144144-PROGRAM DEMO
145145-146146-JSON TL
147147-JSON FEED
148148-JSON ITEM
149149-STRING TEXT
150150-151151-BEGIN
152152- TL = ATP_TIMELINE("")
153153- FEED = JSON_GET(TL, "feed")
154154- ITEM = JSON_INDEX(FEED, 0)
155155- TEXT = JSON_STRING(JSON_GET(ITEM, "text"))
156156- WRITE(TEXT)
157157-END
158158-```
159159-160160-## Notes
161161-162162-- No floating point in v0
163163-- No recursion in v0
164164-- JSON is opaque runtime value
165165-- All networking is delegated to bridge
+71
docs/superplan-language-spec-v0.1.md
···11+# Superplan Specification (v0.1)
22+33+## Overview
44+55+Superplan is a structured procedural language designed for system control and protocol-driven applications.
66+77+## Program Structure
88+99+PROGRAM NAME
1010+1111+<declarations>
1212+<procedures>
1313+1414+BEGIN
1515+ <statements>
1616+END
1717+1818+## Types
1919+2020+INTEGER, BOOLEAN, STRING, JSON
2121+2222+ARRAY TYPE NAME[N]
2323+2424+## Statements
2525+2626+Assignment:
2727+X = expr
2828+2929+Output:
3030+WRITE(expr)
3131+3232+Input:
3333+X = READLINE()
3434+3535+Conditional:
3636+IF expr THEN ... END
3737+3838+Loop:
3939+WHILE expr DO ... END
4040+4141+Procedure:
4242+PROCEDURE NAME(params)
4343+4444+Call:
4545+CALL NAME(args)
4646+4747+Stop:
4848+STOP
4949+5050+## Expressions
5151+5252+- literals
5353+- variables
5454+- function calls
5555+- binary operators
5656+5757+## Built-ins
5858+5959+WRITE, READLINE
6060+6161+JSON:
6262+JSON_GET, JSON_INDEX, JSON_STRING, JSON_PARSE, JSON_STRINGIFY
6363+6464+AT Proto:
6565+ATP_LOGIN, ATP_TIMELINE, ATP_PROFILE, ATP_POST, ATP_WHOAMI
6666+6767+## Notes
6868+6969+- interpreter-based
7070+- JSON opaque
7171+- networking via bridge only
+22-53
docs/vision.md
···11-# Superplan AT Proto Project
11+# Superplan Project
2233## Vision
4455-Build a working Bluesky / AT Protocol terminal client using a stack centered on **historical programming languages**, not modern frameworks.
55+Build a real, working terminal client for AT Protocol (Bluesky) using a stack centered on historical programming language ideas.
6677-This is not nostalgia. This is a systems experiment:
77+This is a systems experiment:
8899-- What happens when early-language design meets modern decentralized protocols?
1010-- How far can we push pre-modern language models into real networked software?
99+- Can early language design scale into modern networked systems?
1010+- How far can structured procedural languages go today?
11111212-## Core Stack
1212+## Stack
13131414-- **Superplan-26** → primary user-facing language
1515-- **Lisp** → compiler tooling, AST transforms, meta-layer
1616-- **ALGOL influence** → structure, readability, block discipline
1717-- **Plankalkül influence** → typed data and structured values
1818-- **Rust/C bridge** → minimal AT Proto edge (HTTP, JSON, auth)
1414+- Superplan → primary language
1515+- Lisp → parser, AST, interpreter
1616+- ALGOL influence → structure
1717+- Plankalkül influence → typed thinking
1818+- Rust bridge → network edge (AT Proto)
19192020-## Design Principles
2020+## Principles
21212222-### 1. Old languages first
2323-Push as much logic as possible into:
2424-- Superplan
2525-- Lisp
2222+1. Keep logic in Superplan/Lisp
2323+2. Use modern code only at the edge
2424+3. Deterministic, explicit execution
2525+4. Practical, not nostalgic
26262727-### 2. Modern code only at the edge
2828-Rust/C is allowed only for:
2929-- HTTPS / XRPC
3030-- JSON parsing/serialization
3131-- secure token handling
3232-- IPC
2727+## Target
33283434-### 3. Deterministic and simple
3535-- no hidden magic
3636-- no runtime surprises
3737-- explicit flow
2929+A working terminal client:
38303939-### 4. Historical but usable
4040-This is not a museum recreation.
4141-4242-Superplan-26 is:
4343-- inspired by history
4444-- shaped for real execution
4545-4646-## Target
4747-4848-A working terminal client that can:
4931- login
5050-- read timeline
5151-- view profiles
5252-- view threads
5353-- post messages
3232+- timeline
3333+- profile
3434+- post
54355555-All driven from Superplan programs.
5656-5757-## Philosophy
5858-5959-> The device speaks better than 100 slides.
6060-6161-This repo should demonstrate:
6262-- a language
6363-- a compiler
6464-- a runtime
6565-- a real protocol integration
6666-6767-All grounded in early computing ideas.
3636+Driven entirely from Superplan programs.