Skip to content

capability syntax, step B: move every source, remove protocol/op/end - #46

Merged
vic merged 1 commit into
mainfrom
capability-b
Nov 9, 2026
Merged

vic merged 1 commit into
mainfrom
capability-b

Conversation

@vic

@vic vic commented Nov 9, 2026

Copy link
Copy Markdown
Owner

This step moves every source to the capability syntax that step A (#45) added, and removes the old keywords.

  • lib/prelude, s2/store, tests: protocol is now capability and end is now stop. Single-state Live capabilities drop their state lines. Each op is now a def with <A> .. <B>, or with <s r t> .. <t> and a transition. at(x, T) is now x: T.
  • parse: protocol, op and end are parse errors (neg/protocol_gone, neg/end_gone).
  • printer: it prints capability/stop, prints at(x, T) as x: T, and prints each def through a transition named as itself, so the text parses back to the same transitions. ast.out and parse.out changed only in this syntax (I reviewed the diffs).
  • tests: a b{1,2} a c written as capability states. prog/cap_seq runs a b a c and a b b a c. neg/cap_seq_none (a a c) and neg/cap_seq_many (b three times) give op-not-allowed. neg/cap_seq_open (a b a) gives capability-not-ended.
  • The gate passes with 216 ok and 0 FAIL. The seed is updated.

…ith <A> .. <B> or <s r t> .. <t>, and x: T facts; protocol, op and end no longer parse; the printer writes the new syntax (at(x, T) as x: T, each def by a transition named as itself); tests for a b{1,2} a c as capability states
@vic
vic merged commit ea44b76 into main Nov 9, 2026
3 checks passed
@vic
vic deleted the capability-b branch November 17, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant