Pkl was built using the GraalVM Truffle framework. So it supports runtime compilation using Futamura Projections. We have been working with Apple on this for a while, and I am quite happy that we can finally read the sources! https://github.com/oracle/graal/tree/master/truffle Disclaimer: graalvm dev here. Edit: typo
Do you know, why they use both ANTLR and Truffle?
In other words antlr and truffle are a great fit. We even use this pairing for our example language simplelanguage.