Translate Latex equations to Stan models


I was wondering if there is any tool to help convert a statistical model written in Latex to, say, RStan model automatically.

For example, I have the following equation:

y_{n} \sim \mathcal{N}(\alpha + \beta X_{n}, \sigma)

This equation would be converted to the following stan model:

   model {
     y ~ normal(alpha + beta * x, sigma);

Data and parameters would be further defined by the user.

Any pointer would be appreciated. Thanks!

The closest to this (i.e., it’s not LaTeX but it potentially could be), is the Rethinking notation perhaps?