Repository navigation
Add Ranges as a constructor using a provided total order on characters - #172
Merged
Merged
Conversation
# Conflicts: # lexers/regex/.DS_Store # lexers/regex/ziplex/src/main/scala/com/ziplex/lexer/LexerInterface.scala # lexers/regex/ziplex/src/main/scala/com/ziplex/lexer/Main.scala # lexers/regex/ziplex/src/main/scala/com/ziplex/lexer/VerifiedLexer.scala # lexers/regex/ziplex/src/main/scala/com/ziplex/lexer/VerifiedRegex.scala # lexers/regex/ziplex/stainless.conf # lexers/regex/ziplex/verify.sh
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.
Add a new
case ElementRange[C](from: C, to: C, ord: Ordering[C])to represent ranges of characters in an efficient way. Indeed,ElementSet[C](s: Set[C])requires to compute the set belonging relation to match a character, whileElementRangeonly requires two comparison computations.Adding this construct requires to remove
firstCharsandcharsOfas these need to explicitly enumerate used characters, which is impossible with ranges on generic types. This means that the separator token concept and related proofs are also removed.This verifies locally with stainless with internally mutable objects (epfl-lara/stainless#1787) which is not merged yet. EDIT it is merged now :)
If we want separator tokens back, we can roll back to this commit.