-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add include_file #57
Comments
Without this feature (or discussion of its future), I do not see how this will work in the long term. Use-case: I want to directly support the some expressions defined by the partiql_ast for my own domain (using |
Amended the title and description of this issue by replacing the term "import" with "include" to reflect this decision that was made during the review of #74. |
Given a file:
universe_a.ion
, with contents:And another file
universe_b.ion
that resides in a different directory, I should be able to include theuniverse_a.ion
file inuniverse_b.ion
.We might find a need to make this more sophisticated in the future, but to keep this simple for now, the result will be the same as if the
(include_file ...)
statement were replaced with the contents ofuniverse_a.ion
:The grammar of the
include_file
statement is:Other requirements (not in any order):
include_file
statements in all included files have been processed, the result should be a single type universe with all of the domains from all of the included files, which can then be passed through the remaining processing steps that exist today. No changes to those processing steps are needed.IonElement
'sIonLocation
meta for this, but it lacks a property for the filename. The filename should either be specified in a different meta, or a new meta should be used that has properties for the source file, line and character offset.<relative-path-to-ion-file>:<line>:<column>: <message>
This format is understood by certain IDEs such as Visual Studio and IntelliJ (with a plugin) and causes the IDE to to turn the location text in the console output into a clickable hyperlink. (A quality of life improvement.)The text was updated successfully, but these errors were encountered: