Skip to content

Better detection of misplaced procedure declarations in sections#131

Merged
istathar merged 7 commits into
technique-lang:mainfrom
istathar:sections-error
Jul 1, 2026
Merged

Better detection of misplaced procedure declarations in sections#131
istathar merged 7 commits into
technique-lang:mainfrom
istathar:sections-error

Conversation

@istathar

@istathar istathar commented Jun 30, 2026

Copy link
Copy Markdown
Member

The language specification is clear about sections having either steps, or procedures, but not a mix of both. This is for good grammar reasons, but it is not particularly obvious to a new author. This branch improves the detection of a misplaced procedure declarations in a sections that already has steps, and produces a specific and helpful error message if encountered.

Then, quite unexpectedly, a single character error in a golden test added to the runner exposed a significant inconsistency in the way that results were tallied in the interactive mode versus the automatic mode. This led to a significant internal refactoring of the way that results are gathered as Output, and then conveyed upwards as Conclusions. The key to cleaning up the ambiguities was to give steps a Kind, whereby they can be identified as being neutral prose, having real-world effects, hinging on whether an automated runner can obtain their result or can only mark the step as skipped.

@istathar istathar self-assigned this Jun 30, 2026
@istathar istathar merged commit abdf24c into technique-lang:main Jul 1, 2026
1 check passed
@istathar istathar deleted the sections-error branch July 1, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant