Would it be possible to allow multiple declarations on one line, that avoid repeating the var_decl part of the grammar? Eg
real alpha, beta, gamma[5];
real<lower=0> a, b[3, 4];
that would be equivalent to
real alpha;
real beta;
real gamma[5];
real<lower=0> a;
real<lower=0> b[3, 4];
and similarly for other types.
This would allow more compact code, could factor out common parts. As far as I understand, this would only change the surface syntax (parser) a bit, and would require no change to the internals.
Would it be possible to allow multiple declarations on one line, that avoid repeating the
var_declpart of the grammar? Egthat would be equivalent to
and similarly for other types.
This would allow more compact code, could factor out common parts. As far as I understand, this would only change the surface syntax (parser) a bit, and would require no change to the internals.