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

Document the way to Import/reuse .dl file #1340

Closed
izgzhen opened this issue Mar 7, 2020 · 4 comments
Closed

Document the way to Import/reuse .dl file #1340

izgzhen opened this issue Mar 7, 2020 · 4 comments

Comments

@izgzhen
Copy link

izgzhen commented Mar 7, 2020

I am using Souffle and I wonder if it supports "importing" one .dl file inside another one so I can share code between different ".dl" files?

I've read the help message on "-L" and "-I", but they seem not related to the problem I had.

Thanks in advance!

@izgzhen
Copy link
Author

izgzhen commented Mar 7, 2020

Update:

It seems that the following directive works

#include "path/to/x.dl"

I would change the issue to a documentation one. Feel free to close it as well.

@izgzhen izgzhen changed the title Import/reuse .dl file Document the way to Import/reuse .dl file Mar 7, 2020
@psubotic
Copy link
Collaborator

psubotic commented Mar 7, 2020 via email

@b-scholz
Copy link
Member

b-scholz commented Mar 8, 2020

We need to document how mcpp works in conjunction with soufflé. Basically, mcpp is a c-preprocessor that is used to expand the source code internally. You can use macros and includes in your Soufflé programs.

@mmcgr
Copy link
Member

mmcgr commented Mar 8, 2020

Our current documentation exists, but is extremely limited:
https://souffle-lang.github.io/tutorial#remarks-on-input-and-c-preprocessor

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

4 participants