Move to Agda grammar