CTFE & code generators based on PEG grammars?

Bastiaan Veelo Bastiaan at Veelo.net
Sat Apr 6 20:16:14 UTC 2019


On Saturday, 6 April 2019 at 12:06:22 UTC, Robert M. Münch wrote:
> The idea is, that I can write a string (or maybe even a scope 
> block?) in my DSL and use a CTFE grammer to transpile the code.

Are you aware of Pegged[1]? It’s for exactly that.

[1] http://code.dlang.org/packages/pegged


More information about the Digitalmars-d-learn mailing list