Ask questionsFeature request: reflecting abstract syntax
It would be nice if there was some way to write a macro that takes as input the abstract syntax representation of a term (i.e. before typechecking). This would enable us to write macros that change the elaboration process. Some examples:
I'm sure people will be able to come up with lots of other ways to extend Agda's elaboration.
One question when implementing this feature is whether we need a separate representation of reflected abstract syntax, or if we can reuse the existing reflected internal syntax (by implementing a function
Answer questions erydo
Just for reference/discussion to a previous related (or duplicate) issue about this: