The first problem is to give substance to abstract ideas like a set of rules. Decide on images to represent the major elements of the system.
Here is an example where I tackled software syntax.
https://forum.artofmemory.com/t/miniature-memory-palaces-including-your-palm/28864/136?u=zvuv
That thread is particularly rich in ideas and is worth reading in its entirety