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

Support include directory for implicitly available files #193

Closed
MarkusAmshove opened this issue Apr 26, 2023 · 1 comment · Fixed by #354
Closed

Support include directory for implicitly available files #193

MarkusAmshove opened this issue Apr 26, 2023 · 1 comment · Fixed by #354
Labels
natparse🔎 Parser and project structure

Comments

@MarkusAmshove
Copy link
Owner

Natural has multiple LDAs, PDAs etc. that are implicitly available to the runtime but not in the repository.
NaturalONE handles this with its connection to the NDV server, so that it can see the definition from the system libraries.

To support all checks that natparse does for calls to these modules, we could add support for a include/ directory in the repository.

This folder resides side by side to Natural-Libraries and can contain libraries like SYSTEM, SYSRPC etc.

In there, a user can put stubs for data areas and subprograms (define data only) to make them visible to the parser.

include/SYSRPC
include/SYSTEM
Natural-Libraries/LIB1
Natural-Libraries/LIB2
@MarkusAmshove MarkusAmshove added the natparse🔎 Parser and project structure label Apr 26, 2023
@Claes65
Copy link
Contributor

Claes65 commented May 15, 2023

I solved this by putting a folder inside the top STEPLIB (often SYSTEM) containing the missing files as stubs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
natparse🔎 Parser and project structure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants