Skip to content

multiple variable declarations on one line #474

@tpapp

Description

@tpapp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions