[–] rtz12 7y ago ↗ Now this looks like an assortment of terrible hacks that I'd never want to use.Good job though.
[–] herogreen 7y ago ↗ Very impressive! Especially the fact that it only uses macros (if I parse the website correctly). [–] eatonphil 7y ago ↗ It's not just macros. See the src directory https://github.com/orangeduck/Cello/tree/master/src [–] rightbyte 7y ago ↗ Ye. C++ used a preprocessor in it's early days.Edit: I like this: "#define in ," to make "foreach(a in b)" loops.
[–] eatonphil 7y ago ↗ It's not just macros. See the src directory https://github.com/orangeduck/Cello/tree/master/src
[–] rightbyte 7y ago ↗ Ye. C++ used a preprocessor in it's early days.Edit: I like this: "#define in ," to make "foreach(a in b)" loops.
[–] azhenley 7y ago ↗ I am currently working on a compiler that emits C and have been looking for something along these lines.I'll definitely look into this!
[–] vectorEQ 7y ago ↗ for me this takes the fun out of C, however, it's pretty cool project full of neat tricks to learn form if you want to know what C can do or how to implement certain high level constructs in your own projects. good job!
6 comments
[ 346 ms ] story [ 713 ms ] threadGood job though.
Edit: I like this: "#define in ," to make "foreach(a in b)" loops.
I'll definitely look into this!