Prepare for new repl #892

Merged
zxq9 merged 3 commits from repl-prep into master 2022-07-26 01:46:54 +09:00
zxq9 commented 2022-07-25 03:11:16 +09:00 (Migrated from gitlab.com)

Created by: radrow

I had to expose some more functions and fix some typing issues

*Created by: radrow* I had to expose some more functions and fix some typing issues
ghallak (Migrated from gitlab.com) approved these changes 2022-07-25 03:11:16 +09:00
ghallak commented 2022-07-25 04:13:46 +09:00 (Migrated from gitlab.com)

@radrow What do you need this function for?

@radrow What do you need this function for?
zxq9 commented 2022-07-25 05:37:55 +09:00 (Migrated from gitlab.com)

Created by: radrow

This sets the env to work in a given scope (eg a namespace). push_scope wouldn't work, because it always starts with a clean scope.

REPL uses it for resolution of user-defined types. They have to be declared in ?MOCK_CONTRACT, and so while unfolding their definitions the typechecker has to be in the context of that contract (otherwise it complains that the type is unknown)

*Created by: radrow* This sets the env to work in a given scope (eg a namespace). `push_scope` wouldn't work, because it always starts with a clean scope. REPL uses it for resolution of user-defined types. They have to be declared in `?MOCK_CONTRACT`, and so while unfolding their definitions the typechecker has to be in the context of that contract (otherwise it complains that the type is unknown)
zxq9 commented 2022-07-26 00:54:01 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Dismissed

👍

*Created by: hanssv* **Review:** Dismissed 👍
ghallak commented 2022-07-26 01:37:18 +09:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
zxq9 commented 2022-07-26 01:40:16 +09:00 (Migrated from gitlab.com)

Created by: hanssv

Review: Approved

*Created by: hanssv* **Review:** Approved
zxq9 commented 2022-07-26 01:46:54 +09:00 (Migrated from gitlab.com)

Merged by: radrow at 2022-07-25 16:46:54 UTC

*Merged by: radrow at 2022-07-25 16:46:54 UTC*
Sign in to join this conversation.
No description provided.