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

{amod} Importing #114

Open
asmaloney opened this issue May 30, 2022 · 0 comments
Open

{amod} Importing #114

asmaloney opened this issue May 30, 2022 · 0 comments
Labels
enhancement New feature or request language amod language changes

Comments

@asmaloney
Copy link
Owner

It might make sense to be able to import other files using an import or include statement. These might use a new extension since they won't be complete programs:

Possibilities:

  • allow import statements only in the model section and allow anything other than the model section in them (*.amodi)
  • allow them per-section (except model) to import just initializers or productions for example (so files don't contain sections) ( *.amodi for initializers, *.amodp for productions?)

Need to consider how it affects readability vs. understanding of the model vs. maintainability.

Related to #5 since that might change the use-case for including initializers separately.

@asmaloney asmaloney added enhancement New feature or request language amod language changes labels May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language amod language changes
Projects
None yet
Development

No branches or pull requests

1 participant