Skip to content
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

代码补全 #5

Open
umajho opened this issue Mar 27, 2023 · 1 comment
Open

代码补全 #5

umajho opened this issue Mar 27, 2023 · 1 comment

Comments

@umajho
Copy link
Owner

umajho commented Mar 27, 2023

两方面:通常函数、作用域中的变量。

通常函数

在考虑把放在 @dicexp/executing 中的那些通常函数单独提取到一个包中,目前的想法如下:

  1. 添加 @dicexp/regular-function-spec 包,依赖于 @dicexp/executing,用于创建通常函数。
  2. 定义好的规格与实现分离,都存放于 @dicexp/default-regular-functions 包内。
  3. dicexp 包默认将 2 中的实现添加到顶层作用域中。
  4. @dicexp/codemirror-lang-dicexp 包提供扩展,实现依据 2 中的规格提供通常函数的补全。

作用域中的变量

直接往外找闭包的形式参数名称就成了。不考虑提供它们的类型。

@umajho
Copy link
Owner Author

umajho commented Mar 27, 2023

如果要把默认的通常函数拆出去,则 @dicexp/executing 包:

  • 需要准备测试专用的通常函数,用以替换先前用在测试里的那些通常函数。
  • 要记得单独测试与惰性求值、记忆化有关的功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant