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

Add a way to import code from other files #56

Open
MilkeeyCat opened this issue Sep 9, 2024 · 0 comments
Open

Add a way to import code from other files #56

MilkeeyCat opened this issue Sep 9, 2024 · 0 comments

Comments

@MilkeeyCat
Copy link
Owner

MilkeeyCat commented Sep 9, 2024

import "path" is used for importing local files
import "@srs_json/decoder" is used for importing files from external
packages

To let the compiler know that there's external package, use
--package /home/user/path/to/package, the path should point to a folder where
there will be 2 files: package.o and path.

package.o is compiled package as object file which will be just linked with
the user's program.
path file should contain path to source code of the package so it's possible
to look for a file there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant