The GF Transfer language is a programming language which can be used to write functions which work on abstract syntax terms.
The Transfer tutorial shows an example of how to write and use a simple transfer function for a GF grammar.
The Transfer reference aims to cover all constructs in the Transfer language.