flow grammar completed