From 816da882c30e6eb944841276ac59b8873f6c4761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Szeremeta?= Date: Fri, 21 Aug 2020 00:36:22 +0200 Subject: [PATCH] Add GRAPH section --- other-notations/YARSpg.ebnf | 3 ++- yarspg/YARSpg.g4 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/other-notations/YARSpg.ebnf b/other-notations/YARSpg.ebnf index 6d03f15..2eb5bf4 100644 --- a/other-notations/YARSpg.ebnf +++ b/other-notations/YARSpg.ebnf @@ -146,7 +146,8 @@ directed_schema undirected_schema ::= 'S' '(' node_label ')' '-' '(' ( '{' ( edge_label ( ',' edge_label )* )? '}' )? prop_list_schema ')' '-' '(' node_label ')' SECTION_NAME - ::= 'METADATA' + ::= 'GRAPH' + | 'METADATA' | 'NODE SCHEMAS' | 'EDGE SCHEMAS' | 'NODES' diff --git a/yarspg/YARSpg.g4 b/yarspg/YARSpg.g4 index 579c800..944c6a5 100644 --- a/yarspg/YARSpg.g4 +++ b/yarspg/YARSpg.g4 @@ -255,7 +255,8 @@ undirected_schema ; SECTION_NAME - : 'METADATA' + : 'GRAPH' + | 'METADATA' | 'NODE SCHEMAS' | 'EDGE SCHEMAS' | 'NODES'