Module pr47::syntax::attr [−][src]
Expand description
Concrete syntax tree of attributes
Attribute syntax:
global-attribute ::= '#' '!' '[' attribute-list ']'
attribute ::= '#' '[' attribute-list ']'
attribute-list ::= attribute-list ',' attribute-item
| attribute-item
attribute-item ::= attribute-identifier-item
| attribute-assign-alike-item
| attribute-call-alike-item
attribute-identifier-item ::= identifier
attribute-assign-alike-item ::= identifier '=' attribute-value
attribute-call-alike-item ::= identifier '(' attribute-list ')'
attribute-value ::= identifier
| literal