Skip to content

Move names, definitions and exports to a page of the language - #246

Merged
tophcodes merged 2 commits into
mainfrom
issue-66-program-structure
Oct 9, 2026
Merged

tophcodes merged 2 commits into
mainfrom
issue-66-program-structure

Conversation

@tophcodes

Copy link
Copy Markdown
Owner

Refs #66.

Moves §5 and §5a of SPECIFICATION.md, names and program structure and the definitions, into a page of the language, BELOCH-NAMES.md, and deletes them there. The page states the sigils and namespaces, the binding forms, the rule of one binding per name with temps as the exception, and def, apply and export with their errors as the kernel reports them, each with a program the build evaluates. The grammar page gains the rules for bindings, definitions, applications and exports, which were declared external until now.

The tree-sitter grammar parsed def name(.p .q) and apply name(.a .c) with an error node, since the parser took a ( after the name for the start of an item. It now has a rule for the head of a definition and for an application, so the corpus test passes on the new page.

@tophcodes tophcodes added the kind:docs Pages, figures, reference text label Oct 8, 2026
@tophcodes
tophcodes merged commit b7c9688 into main Oct 9, 2026
7 checks passed
@tophcodes
tophcodes deleted the issue-66-program-structure branch October 9, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:docs Pages, figures, reference text

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant