Yeah this is pretty much exactly what I wanted, but with spell incantations acting like snippets of code. The fun begins when high level mages start interacting with the code in novel and unexpected ways. Or you could have them unlock higher tiers of magic that should be "impossible" but they've...