feat!: syntax overhaul before 1.0 release#47
Merged
Conversation
ae9d07f to
44d759b
Compare
BREAKING CHANGE: multiple syntax changes ahead of the 1.0 release. - #-lines in implicit body are comments, not expected output (use [asserts] with `line N startsWith "#"` to test # in stdout) - Section headers must be lowercase: [asserts], [captures], [prompts], [finally] (old uppercase form produces a parse error with migration hint) - `later` modifier moves to front of assert line: `later stdout contains "done"` - Capture syntax uses = instead of : (`id = stdout`) - Bare-value semantics formalized: everything after the predicate is the value, quotes optional - Remove dead `extractPredicateWithLater` function (lint fix) - Remove [Options] section from SPEC (never implemented) Closes #40
44d759b to
b8f639f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syntax Overhaul before 1.0
Breaking syntax changes implemented ahead of the 1.0 release. Acceptable since we are pre-1.0.
Changes
#-lines in implicit body are comments, not expected output[asserts],[captures],[finally],[prompts]laterto front of assert line:later stdout contains "done"=instead of:(id = stdout)[Options]section from SPEC (never implemented)Old uppercase section headers and old
:capture syntax produce parse errors with clear migration hints.Migration examples
Closes #40