Skip to content

Add oneof as alias for any nondeterministic choice, deprecate any#326

Merged
jp-fizzbee merged 1 commit intomainfrom
user/jp/use-oneof-as-any-alias
Mar 5, 2026
Merged

Add oneof as alias for any nondeterministic choice, deprecate any#326
jp-fizzbee merged 1 commit intomainfrom
user/jp/use-oneof-as-any-alias

Conversation

@jp-fizzbee
Copy link
Collaborator

  • Grammar: allow oneof as alias in assignment (x = oneof items) and compound (oneof x in items:) forms alongside existing any
  • Emit DeprecationWarning to stderr when any is used in these forms
  • Regenerate ANTLR4 Python parser files
  • Update 13 reference examples to use oneof instead of any
  • Update LANGUAGE_REFERENCE.md, GOTCHAS.md, and fizz-spec skill docs

- Grammar: allow `oneof` as alias in assignment (`x = oneof items`) and
  compound (`oneof x in items:`) forms alongside existing `any`
- Emit DeprecationWarning to stderr when `any` is used in these forms
- Regenerate ANTLR4 Python parser files
- Update 13 reference examples to use `oneof` instead of `any`
- Update LANGUAGE_REFERENCE.md, GOTCHAS.md, and fizz-spec skill docs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jp-fizzbee jp-fizzbee merged commit 8c85883 into main Mar 5, 2026
1 check passed
@jp-fizzbee jp-fizzbee deleted the user/jp/use-oneof-as-any-alias branch March 5, 2026 18:36
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.

2 participants