anz-bank / sysl

Sysl (pronounced "sizzle") is a system specification language
https://sysl.io
Apache License 2.0
122 stars 42 forks source link

allow annotations in fields with inplace tuple #954

Open nofun97 opened 4 years ago

nofun97 commented 4 years ago

Currently sysl grammar does not allow annotations for an inplace tuple.

App:
    !type Tuple:
        @attr = "abc"
        a <:
            @attr = "abc"
            b <: string

This should be allowed to add annotations to the field Tuple.a.

anzdaddy commented 4 years ago

Make sure to also support inline annotations:

App:
    !type Tuple [attr = "abc"]:
        a [attr = "abc"] <:
            b <: string