Skip to content

Correct results of steps with mixed prose and function calls#123

Merged
istathar merged 5 commits into
technique-lang:mainfrom
istathar:exec-results
Jun 23, 2026
Merged

Correct results of steps with mixed prose and function calls#123
istathar merged 5 commits into
technique-lang:mainfrom
istathar:exec-results

Conversation

@istathar

Copy link
Copy Markdown
Member

The output of exec() calls was already recorded in a Return line, but that value was being duplicated as the enclosing step's Result. That led to clarifying the place of code inlines in descriptive paragraphs, and realizing we could translate the prose as a no-op Operation::Prose variant so that if trailing prose is present then the result of the step is then correctly the Unitus value.

This extended into the anonymous "Step 0" created when consequential operations are present in a procedure description. This has been re-translated as Operation::Prelude and then if function calls are present then they are properly entered and recorded.

Cleanup noise from test output.

@istathar istathar self-assigned this Jun 23, 2026
@istathar istathar merged commit 23721f3 into technique-lang:main Jun 23, 2026
1 check passed
@istathar istathar deleted the exec-results branch June 23, 2026 07:12
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