digitalmars.D - provide compiler hooks to customize compilation [cf EMAIL:In language
- Timothee Cour via Digitalmars-d (10/10) Mar 05 2016 one takeaway from the video in [EMAIL:In language tooling] that would be
one takeaway from the video in [EMAIL:In language tooling] that would be doable in D with a compiler as a library: we could provide hooks (via user defined function delegates) in the compiler when some action happen, eg: opening a file to be compiled, parsing an import, processing an expression etc. This would allow for example writing user defined callbacks to interactively visualize on a webserver the number of [files,functions,symbols,LOC, mixin expansions, CTFE execution] being compiled in realtime, warn when a file about to be compiled doesn't match some regular expression, and many other use cases (see video)
Mar 05 2016