I believe you are looking for the ABNF description which is defined in the RFC 2234.
For the summary take the following example
<CER>::= < Diameter Header: 257, REQ >
{ Origin-Host }
{ Origin-Realm }
1* { Host-IP-Address }
{ Vendor-Id }
{ Product-Name }
[ Origin-State-Id ]
* [ Supported-Vendor-Id ]
* [ Auth-Application-Id ]
* [ Inband-Security-Id ]
* [ Acct-Application-Id ]
* [ Vendor-Specific-Application-Id ]
[ Firmware-Revision ]
* [ AVP ]
where
[ - OPTIONAL SEQUENCE
* - means variable repetition
n* - variable repetition but atleast n
; - comment
<> - to define rule name or element name though not mandatory