3 ms·
Because then I'd have to write a C parser that works at D compile-time. I'd much rather use libclang and know that what I get was parsed correctly. _Especially_
by atilaneves 9y ago
Because then I'd have to write a C parser that works at D compile-time. I'd much rather use libclang and know that what I get was parsed correctly. _Especially_ when I start doing C++.
- Doxin 9y agoI suggest you look at the pegged library. It does compile-time parser generation of parsers that work at compile time. I think the examples folder contains a C grammar. But then I suppose getting it working is better than getting it elegant.