Module support #82

Closed
opened 2023-01-12 16:46:01 +00:00 by deavmi · 1 comment
Owner

What is this?

We want to add support for modules. Therefore the ability to import, refer to entities within other modules from another module. We need to take into account a few things:

  • Module caching
    • We cannot import the same module several times, this ought to be handled as a static field within the Parser
  • The resolver must laterally search all modules in this importedModules field of the provided Program as the "top-level containers", rather than the current implementation of just the current module.
### What is this? We want to add support for modules. Therefore the ability to import, refer to entities within other modules from another module. We need to take into account a few things: - [ ] Module caching * We cannot import the same module several times, this ought to be handled as a `static` field within the `Parser` - [ ] The resolver must laterally search all modules in this `importedModules` field of the provided `Program` as the "top-level containers", rather than the current implementation of just the current module.
deavmi added this to the Basics milestone 2023-01-12 16:46:01 +00:00
deavmi self-assigned this 2023-01-12 16:46:03 +00:00
deavmi added this to the Parser project 2023-01-12 16:46:03 +00:00
deavmi added the
dependency
parser
emit
resolution
labels 2023-01-13 09:26:51 +00:00
Author
Owner

Closing this for now due to another one, #157, being where we are tracking this

Closing this for now due to another one, #157, being where we are tracking this
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tlang/tlang#82
No description provided.