creusot
creusot copied to clipboard
Support macro invocations in pearlite terms.
We should allow calls to macros in pearlite terms. Currently this is an error in pearlite_syn
.
I tried adding this as part of #274, but unfortunately it requires using apis which are not public in syn, much to my chagrin.
We've settled on only allowing whitelisted macros for now (proof_assert
).
The problem being that arbitrary macros could allow writing non-pearlite code in pearlite context.
The problem being that arbitrary macros could allow writing non-pearlite code in pearlite context.
I don't really consider this a problem we need to defend against. They wouldn't be able to do anything unsound, as the "real" parser happens later on in the compilation anyways.