From 1f1e24b329df0d9cd3dc74109b78fd53d2f2fd93 Mon Sep 17 00:00:00 2001 From: Alexander Wert Date: Wed, 26 Jul 2023 10:32:56 +0200 Subject: [PATCH 1/2] proposal adapting yaml syntax Signed-off-by: Alexander Wert --- semantic-conventions/syntax.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/semantic-conventions/syntax.md b/semantic-conventions/syntax.md index 9633ba05..1b7368a7 100644 --- a/semantic-conventions/syntax.md +++ b/semantic-conventions/syntax.md @@ -40,10 +40,15 @@ here in `syntax.md` should be considered more authoritative though. Please keep All attributes are lower case. ```ebnf -groups ::= semconv - | semconv groups +groups ::= group {group} + | group {group} groups -semconv ::= id [convtype] brief [note] [prefix] [extends] [stability] [deprecated] attributes [constraints] [specificfields] +group ::= semconv + | namespace + +namespace ::= id brief [note] prefix [stability] [deprecated] attribute_definitions + +semconv ::= id [convtype] brief [note] [extends] [stability] [deprecated] attributes [constraints] [specificfields] id ::= string @@ -68,7 +73,13 @@ stability ::= "deprecated" deprecated ::= -attributes ::= (id type brief examples | ref [brief] [examples]) [tag] [stability] [deprecated] [required] [sampling_relevant] [note] +attribute_definitions ::= attribute_definition {attribute_definition} + +attribute_definition ::= id type brief examples [tag] [stability] [deprecated] [sampling_relevant] [note] + +attributes ::= attribute {attribute} + +attribute ::= ref [brief] [examples] [tag] [stability] [deprecated] [requirement_level] [sampling_relevant] [note] # ref MUST point to an existing attribute id ref ::= id From ce97c545df3920a90d9ec404ed9bc9015b9bd50e Mon Sep 17 00:00:00 2001 From: Alexander Wert Date: Thu, 10 Aug 2023 08:22:26 +0200 Subject: [PATCH 2/2] fix EBNF --- semantic-conventions/syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/semantic-conventions/syntax.md b/semantic-conventions/syntax.md index 1b7368a7..357b14c2 100644 --- a/semantic-conventions/syntax.md +++ b/semantic-conventions/syntax.md @@ -40,8 +40,8 @@ here in `syntax.md` should be considered more authoritative though. Please keep All attributes are lower case. ```ebnf -groups ::= group {group} - | group {group} groups +groups ::= group + | group groups group ::= semconv | namespace