We encode more detailed valence information than Klein and Manning (2004) and condition child generation on parent valence.
after drawing a node we first decide whether to proceed to generate a child or to stop conditioned on the parent symbol and subsymbol and the current context (direction and valence).