-
Notifications
You must be signed in to change notification settings - Fork 39
Unify patterns in UCS and UPS #336
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
Merged
Merged
Changes from 73 commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
5be4823
Sketch the `NewDesugarer`
chengluyu f8d040d
Prevent duplicate terms using `Label` in normalization
chengluyu 0f9be9d
Merge branch 'origin/hkmc2'
chengluyu 18b9b7f
Fix that `NewDesugarer` cannot handle `let` bindings
chengluyu 5a27c9e
Check if errors from new and old desugarers are consistent
chengluyu 0c15ac2
Fix spacing after `while` and line break before `break`
chengluyu a079bd9
Desugar splits using `NaiveCompiler` and fix numerous issues
chengluyu 8d77887
Deprecate `Desugarer` and fix related issues
chengluyu 1b8617b
Add the test from today's stand-up meeting
chengluyu defdc53
Deduplicate throw blocks that raise match errors
chengluyu e661386
Improve shorthands that were not sufficiently tested
chengluyu 24e3f73
Comment on a test which worked before
chengluyu ff24d0b
Separate symbols in patterns and terms to fix `where` clauses
chengluyu 0030549
Find dead splits after else & treat `_` as else only in splits
chengluyu 0fb7066
Document a possible future work
chengluyu 3ca6d55
Avoid generating unnecessary`break` in the outermost `Label`
chengluyu b80d4bc
Add locations to the keyword of `InfixApp`
chengluyu 28336d7
Document the reason why we need two sets of symbols
chengluyu 63e521d
Merge branch 'hkmc2'
chengluyu c58b4fd
Support annotation in the desugarer
chengluyu 69ceb31
Remove the uses of keyword escape
chengluyu 55da3fe
Revert the treatment of `_` in splits
chengluyu 012da18
Revise several test files
chengluyu fa35be0
Remove a temporary test command
chengluyu 719570c
Revise several comments
chengluyu eb6babd
Use names instead of underscores in several patterns.
chengluyu bfd7dc7
Move `isInvalidStringBounds`
chengluyu ed97e31
Partially implement `mkClone` for `SynthIf`
chengluyu dce1cd3
Deduplicate `SpreadKind`'s `toString` methods
chengluyu f57588f
Minor code cleanup
chengluyu ccc115b
Remove a useless file
chengluyu 22b79b1
Fix the location of wildcard patterns
chengluyu dacd443
Fix inconsistent empty record patterns in shorthands
chengluyu 659db36
Correct the typo in a file name
chengluyu 8970563
Attach location information to error splits
chengluyu 00466f2
Attach locations to error annotations
chengluyu 992b36b
Revert commented code in split pretty printing
chengluyu 7a530a0
Add tests for string patterns and `@compile` in UCS
chengluyu 4e25640
Merge branch 'origin/hkmc2'
chengluyu 8e0fd16
Validate arguments when expanding splits
chengluyu 7696956
Further separate the duties of `SplitCompiler` and `Normalization`
chengluyu cc8a9be
Continue decluttering `FlatPattern`
chengluyu bdf27c0
Continue decluttering `Normalization`
chengluyu 8ce2d07
No need to clone `Pattern` anymore
chengluyu d60fd0b
Fix the output of string patterns
chengluyu 7e97a94
Add tests for cross compilation of patterns
chengluyu a4e9acd
Add tests for wrongly applied pattern arguments
chengluyu 9af8eaf
Amend test changes
chengluyu bbee7c0
Fix that the same error messages were raised twice
chengluyu 1f9d671
Amend test changes
chengluyu d6f27b9
Merge `SplitCompiler` and `NaiveCompiler` and deduplicate
chengluyu 9f29e6b
Bring back a newline
chengluyu b6cad7c
Merge branch 'origin/hkmc2'
chengluyu a58ca96
Merge branch 'origin/hkmc2'
chengluyu 09316dd
Keep `name` field in the lockfile stable
chengluyu 2ca4acc
Use precise locations when reporting mixed use of `do` and `then`
chengluyu d5d89fa
Merge branch 'origin/hkmc2'
chengluyu 54ce910
Represent call-by-value evaluation contexts using patterns
chengluyu 739f4ea
Mark a problem of inconsistent origins
chengluyu dfead57
Add the Hindley Milner example
chengluyu 25fca5f
Implement Hindley Milner unification using patterns
chengluyu a139ef7
Clean up TODOs
chengluyu 6e53e92
A change during the standup meeting
chengluyu 687b3b2
Document mixed parameters
chengluyu 56289ea
Implement call-by-name evaluation context using patterns
chengluyu 83906b4
Merge branch 'origin/hkmc2'
chengluyu bcf7ae8
Add a few tests
LPTK f49721a
Update a comment
chengluyu 4074ce0
Merge branch 'luyu/refactoring-desugarer'
chengluyu 0182701
Fix parentheses in a test
chengluyu 17a201c
Document a precedence problem
chengluyu 571f84e
Use `MutMap`
chengluyu 274b5f9
Add changes missing in the previous commit
chengluyu 29d221d
Update a comment
chengluyu ca8a1e7
Add tests & fix a couple of things
LPTK cab0586
Update a comment
chengluyu e94246e
Update a comment
chengluyu 3af4454
Update a comment
chengluyu 2dde445
Fix a few minor issues
chengluyu 3e58e5f
Update a comment.
chengluyu 8f8f656
Update a comment
chengluyu 62a116c
Polish a warning
chengluyu ed8744a
Remove an overload
chengluyu 64dad63
Rename `MatchResult` to `MatchSuccess`
chengluyu 679d8b0
Add a comment for class `SimpleSplit`
chengluyu 8f51cd1
Add a test
chengluyu 20ff59c
Remove an outdated comment an unused method
chengluyu caabab8
Properly document a test
chengluyu 5ae5df4
Merge branch 'hkmc2' into refactoring-desugarer
LPTK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.