-
Notifications
You must be signed in to change notification settings - Fork 39
Add Scoped blocks
#356
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
ychenfo
wants to merge
90
commits into
hkust-taco:hkmc2
Choose a base branch
from
NeilKleistGao:scope🥨
base: hkmc2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
The head ref may contain hidden characters: "scope\u{1F968}"
+1,840
−848
Open
Add Scoped blocks
#356
Changes from 2 commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
bf9e386
Add scoped definition
NeilKleistGao 887ca0b
WIP: Try to get symbols for scoped
NeilKleistGao 148006b
wip
ychenfo b28875a
wip and some tests
ychenfo 5f9e63c
WIP: Try
NeilKleistGao cf9d78f
Try to use a pass to insert Scoped
NeilKleistGao 44f132f
Revert "Try to use a pass to insert Scoped"
ychenfo 07eff8f
Revert "WIP: Try"
ychenfo 3108bac
wip:
ychenfo ab0d660
wip: add known bugs in the tests
ychenfo 79bd913
wip wip
ychenfo c5d16e0
Revert "wip wip"
ychenfo 69ad890
Revert "wip: add known bugs in the tests"
ychenfo aeb0c5a
Revert "wip:"
ychenfo a9cbbf9
Merge remote-tracking branch 'origin/hkmc2' into scope🥨
ychenfo 021c1a0
use collection.Set
ychenfo 0d4ae05
wip: a single if in a nested block..?
ychenfo f4ccdf5
wip
ychenfo e796c84
many collection of symbols created during lowering
ychenfo 95c3c12
forgot to collect some symbols and create some scoped blocks
ychenfo 245b9d4
minor
ychenfo 214fc28
minor fix
ychenfo 15f35be
fix two tests
ychenfo 30c1ae9
hopefully complete `Term.definedSyms`
ychenfo 46dd487
wip: make all tests pass
ychenfo 046827a
wip: meaningful use scoped var a bit... now tests related to handler …
ychenfo 12ec16e
wip: nested Scoped blocks for pattern matching bodies with bugs
ychenfo a11aa2d
Revert "wip: nested Scoped blocks for pattern matching bodies with bugs"
ychenfo 50253ae
wip: try to fix errors in handler tests
ychenfo 1871ea2
wip: smart constructors..?
ychenfo dde2adf
Revert "wip: try to fix errors in handler tests"
ychenfo 112f419
wip: all tests can pass by not putting scoped blocks for UCS under th…
ychenfo 4aa8c35
update tests
ychenfo a9cdfd1
jsbuilder: scope.nest.givenIn
ychenfo 7f71ebe
Merge remote-tracking branch 'origin/hkmc2' into scope🥨
ychenfo 2b0590e
WIP: Fix top-level scope & add nest
NeilKleistGao 64385a2
WIP: Try to remove redundant braces (not clean up yet)
NeilKleistGao 36f95ce
WIP: Remove redundant braces (not clean up yet)
NeilKleistGao 0f2f069
WIP: Revert & try to handle non-nested Scoped separately
NeilKleistGao 495956c
more tests; add a fixme; minor
ychenfo 9b5d327
fix incorrect scoped symbols
ychenfo a64ac1f
get rid of `Term.definedSyms`
ychenfo ab74823
get rid of vararg
ychenfo d20dcca
rename
ychenfo 09ea124
fix problems related to handlers in nested `if`/`while`s:
ychenfo 1948288
cleanup
ychenfo 4c7904e
Revert "cleanup"
ychenfo 5ce54b6
Revert "fix problems related to handlers in nested `if`/`while`s:"
ychenfo 10c2ae5
disable while loop rewriting; a temp fix
ychenfo 80fa081
WIP: Add scope.locally
NeilKleistGao 90efc09
Rerun testss
NeilKleistGao 8b3b675
more fixes related to handlers
ychenfo 3dd416f
Merge remote-tracking branch 'cunyuan/scope🥨' into scope🥨
ychenfo cbe96e0
Minor fix and clean up
NeilKleistGao e060b40
Remove dontFlatten field of Scoped and remove some other unexpected c…
NeilKleistGao 1ac0ae9
fix scopes for nested if and `floatOutUntilScope`
ychenfo 30f3850
Merge remote-tracking branch 'cunyuan/scope🥨' into scope🥨
ychenfo d0e2164
Merge remote-tracking branch 'origin/hkmc2' into scope🥨
ychenfo 63fe1c4
try to add some comments to the entangled kludge
ychenfo 43fdc78
update loop rewriting flag
ychenfo 08d4467
some cleanup
ychenfo 9d6b59c
Change the form of scope.locally
NeilKleistGao 9f23fed
Fix the missing case
NeilKleistGao 70ed84a
pr comments
ychenfo 8c11671
cleanup and no "/** scoped **/"
ychenfo 7dc143d
fixes
ychenfo 0227b70
Make some improvements
LPTK 5d99227
Minor fix
NeilKleistGao a6b1adb
Minor
LPTK fbc8c13
Merge remote-tracking branch 'origin/hkmc2' into scope🥨
ychenfo 9231b1b
update comments for `definedVarsNoScoped`
ychenfo 899ee24
Add some comments
NeilKleistGao 2482b1e
Update hkmc2/shared/src/main/scala/hkmc2/codegen/Block.scala
ychenfo 06aa495
Minor
LPTK 7962e06
Fix flatten for nested scopes
NeilKleistGao 562f927
Changes from meeting
LPTK 3b8ccab
Merge from hkmc2 and fix ctor scope problem
NeilKleistGao a869edc
Remove braces in switch
NeilKleistGao 2724146
Revert unnecessary changes
NeilKleistGao a8150c9
check before merge scoped
ychenfo 4631ec2
add tests
ychenfo 7c1007a
pre handler pass
ychenfo 34faf7b
maintain scoped blocks in lambda rewriter
ychenfo 7734f68
remove too much `:sjs` in tests; update comments in tests
ychenfo 347b3e8
`registerTempSymbol` in `Lowering.scala`
ychenfo f2687cc
Update hkmc2/shared/src/test/mlscript/codegen/ScopedBlocksAndHandlers…
ychenfo 91f679b
output `preStr` for ssjs
ychenfo 50ba727
validate IR without `Config.validateIR` for now
ychenfo 4c47bbc
Merge remote-tracking branch 'origin/hkmc2' into scope🥨
ychenfo 31348be
simplify `LambdaRewriter`
ychenfo 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
Some comments aren't visible on the classic Files Changed page.
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
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.
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.