wrote Cogscript grammar parsing rules