2 ms·
YAY: high level parser combinator based PHP preprocessor
- mc_hammer 11y agoone way to think of macros that i like is, a function that can take code blocks as args... #define filter(a,b) ... filter( arr, { v=="foo" } ) but: C: you cant define @ or "= (args) =>", and no var_args.shift()/pop() M4: wtf language, unusable to me all of them missing: "foo bar" declarations with spaces, a manual override for regex based macros, things like lineshift (to insert macro 1 line above or 1 line below), access the function definition or includes, var_args.shift() etc i'm actually writing the same thing as your project now. so good luck :) i was wondering if i could use this for other languages? I'd love to define @ to this. and add lambdas to my current workflow.