In which language do we write macros in writer?

Hello!
Please, in which language(s?) do we write MACROS in writer, and can U link me any usefull beginenrs link?

Many thanks!!!

Could you point out what documentation did not help? It looks like you are too lazy to find out…