Write grammar flags