-
Notifications
You must be signed in to change notification settings - Fork 23
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
Some suggestions for improvements #10
Comments
Thank you for your feedback!
I'll try Datatype99 on TinyC and answer the rest of questions bit later. |
You're welcome. 1. Yes I meant e.g. users must define DATATYPE99_ALIASES if they want the short names. |
TinyCC seems not to work at all with Metalang99. I think this is the cause: #define CALL(f, ...) f(__VA_ARGS__)
#define CONST() 123
// error: macro 'CONST' used with too many args
CALL(CONST, ) But |
Yes, that's a bug. It does not work with CALL(CONST) either. #define CONST(...) 123 is a workaround for now. Thanks for reporting. |
Datatype99 now must work on TCC. Compilation times on GCC/TCC are almost the same:
Regarding the Thanks again for reporting. |
This project has great potentials. I have a few practical suggestion for use as an external library:
#define expr99(Expr, expr) ((Expr *)(Expr[]){expr})
could maybe be part of the lib.sumtype99
.The ast.c example can be easier to read by using infix instead of prefix syntax:
The text was updated successfully, but these errors were encountered: