provide compiler hooks to customize compilation [cf EMAIL:In language tooling]

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Sat Mar 5 18:30:52 PST 2016


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160305/b1d5b8b3/attachment.html>


More information about the Digitalmars-d mailing list