Skip to content

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