Skip to content

Subset alternation #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

archaephyrryx
Copy link
Contributor

@archaephyrryx archaephyrryx commented Nov 14, 2023

Adds a RepeatFallback and related helper-variants to Decoder, Format, and Value.

$\mathrm{RepeatFallback}(A, B) \coloneqq \mathrm{Repeat}(A) \cup \mathrm{PeekNot}(\mathrm{Repeat}(A)) \oplus \mathrm{Repeat}(B) \quad ( A \subset B )$

There is a strong possibility this is misimplemented somewhere due to knock-on effect of failure-tracing to different sites, which may have left things in a partially-implemented or hold-over state.

@archaephyrryx
Copy link
Contributor Author

Note that this changeset treats #115 as its upstream, so it will be hard to merge until #115 is merged.

Format::RepeatFallback(_narrow, _wide) => match value {
Value::Seq(values) => {
for _v in values {
(); // FIXME
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am slightly unclear on the semantics of check_covered, and so I am not sure how to implement this...

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.

1 participant