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 #include statement #11

Open
Vurv78 opened this issue Oct 5, 2021 · 0 comments
Open

Add #include statement #11

Vurv78 opened this issue Oct 5, 2021 · 0 comments
Labels
addition New feature parity Parity with E2 priority.low
Milestone

Comments

@Vurv78
Copy link
Owner

Vurv78 commented Oct 5, 2021

Add another statement in the parser that accepts #include "path". (Might also need to add a new keyword to tokenizer)
See https://github.com/wiremod/wire/wiki/Expression-2#include-directive for more info on what include is.

( It is basically just #include from languages like C++, except it is not through the preprocessor but it is turned into a function that runs in another scope.. yeah it's weird.. )

If you really want to go above and beyond you can also implement it in the lua transpiler side as just require(string).

@Vurv78 Vurv78 changed the title Add support for #include in the parser Add #include statement Oct 5, 2021
@Vurv78 Vurv78 added the parity Parity with E2 label Oct 5, 2021
@Vurv78 Vurv78 added this to the 1.0.0 milestone Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition New feature parity Parity with E2 priority.low
Projects
None yet
Development

No branches or pull requests

1 participant