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

How to extend the MACRO definition language? suggestions required. #1

Open
ParadoxZero opened this issue Jun 3, 2017 · 8 comments
Open

Comments

@ParadoxZero
Copy link
Owner

e.g. Single line macro like #define

@TravorLZH
Copy link
Contributor

Optimization for Java because Java will be powerful with a macro processor

@ParadoxZero
Copy link
Owner Author

The current MDL works with java as well.

@TravorLZH
Copy link
Contributor

Include files like C’s, an included file can also have macro definitions

@TravorLZH
Copy link
Contributor

Call a macro like calling a function

@ParadoxZero
Copy link
Owner Author

Call a macro like calling a function

That's what's happening.

@TravorLZH
Copy link
Contributor

@ParadoxZero With parenthesis

@ParadoxZero
Copy link
Owner Author

I had thought about it, but then realized it may lead to confusion in the source. Especially since this is not part of the language spec, unlike c or cpp.

@TravorLZH
Copy link
Contributor

We could make it compatible to C’s preprocessor, so users can easily apply it to Java and other popular languages

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

2 participants