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

import of dictionaries needs refactor of the runtime #25

Open
nmorse opened this issue Dec 2, 2018 · 1 comment
Open

import of dictionaries needs refactor of the runtime #25

nmorse opened this issue Dec 2, 2018 · 1 comment
Assignees

Comments

@nmorse
Copy link
Owner

nmorse commented Dec 2, 2018

Runtime will need to handle either a wordStack (current) with a object wrapper around word dictionaries --OR-- change to a dictionary of dictionaries format (e.g. {nameSpace:{word1:{}}}).

runtime.js needs to support an IDE that is debugging a running program and wants to know the current imported dictionaries (currently loaded) (i.e. runtime needs to expose wordStack or wordNameSpaces and the findWord function)

@nmorse nmorse self-assigned this Dec 2, 2018
@nmorse
Copy link
Owner Author

nmorse commented Dec 6, 2018

requirements:

  • import should not duplicate dictionary/namespace (subsequent requests to import the same module is ignored)
  • some consideration for speed (can it be optimized in the future?)
  • local words need local scope, so the [namespace module dictionary] structs must support a stack or tree to support scoping.

nmorse added a commit that referenced this issue Dec 8, 2018
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