I don't see how this is similar to op2 ai code. op2 is C++. This doesn't look in any way like C++. It seems to be some simpler, descriptive language that was specifically developed for AoK.
That said, there isn't much reason left for posting it here, except for people who have AoK. By coincidence I own a copy of AoK, so I may someday take a look at it, but currently I am more interested in op2.