stmp icon indicating copy to clipboard operation
stmp copied to clipboard

How to extend the MACRO definition language? suggestions required.

Open ParadoxZero opened this issue 7 years ago • 8 comments

e.g. Single line macro like #define

ParadoxZero avatar Jun 03 '17 05:06 ParadoxZero

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

TravorLZH avatar Jun 10 '18 08:06 TravorLZH

The current MDL works with java as well.

ParadoxZero avatar Jun 10 '18 13:06 ParadoxZero

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

TravorLZH avatar Jun 12 '18 07:06 TravorLZH

Call a macro like calling a function

TravorLZH avatar Jun 12 '18 07:06 TravorLZH

Call a macro like calling a function

That's what's happening.

ParadoxZero avatar Jun 12 '18 10:06 ParadoxZero

@ParadoxZero With parenthesis

TravorLZH avatar Jun 12 '18 10:06 TravorLZH

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.

ParadoxZero avatar Jun 12 '18 11:06 ParadoxZero

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

TravorLZH avatar Jun 13 '18 06:06 TravorLZH