No, but at that point, why even leverage a stochastic text generator? Placing hard constraints on a generative algorithm is just regular programming with more steps and greater instability.
Edit: Also, one could just look to the world of decision tree and route-finding algorithms that could probably do this task better than a language model.
Edit: Also, one could just look to the world of decision tree and route-finding algorithms that could probably do this task better than a language model.