From f924821c79ff8048adbcf3ddce7fb7834424303d Mon Sep 17 00:00:00 2001 From: Tpt Date: Fri, 14 Sep 2018 15:48:46 +0200 Subject: [PATCH] Use pub in rustpeg code --- src/rio/ntriples/ntriples_grammar.rustpeg | 3 +-- src/rio/turtle/turtle_grammar.rustpeg | 3 +-- src/sparql/sparql_grammar.rustpeg | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/rio/ntriples/ntriples_grammar.rustpeg b/src/rio/ntriples/ntriples_grammar.rustpeg index 7b1fb861..50702d20 100644 --- a/src/rio/ntriples/ntriples_grammar.rustpeg +++ b/src/rio/ntriples/ntriples_grammar.rustpeg @@ -9,8 +9,7 @@ use std::collections::BTreeMap; #![arguments(bnodes_map: &mut BTreeMap)] //[2] -#[pub] -triple -> Option = +pub triple -> Option = _ s:subject _ p:predicate _ o:object _ "." _ comment? EOL? { Some(Triple::new(s, p, o)) } / _ comment? EOL? { None } diff --git a/src/rio/turtle/turtle_grammar.rustpeg b/src/rio/turtle/turtle_grammar.rustpeg index 44319c53..36dce197 100644 --- a/src/rio/turtle/turtle_grammar.rustpeg +++ b/src/rio/turtle/turtle_grammar.rustpeg @@ -8,8 +8,7 @@ use std::iter; #![arguments(state: &mut ParserState, buffer: &mut Vec)] //[1] -#[pub] -turtleDoc -> () = _ (statement _)* +pub turtleDoc -> () = _ (statement _)* //[2] statement -> () = directive / triples "." diff --git a/src/sparql/sparql_grammar.rustpeg b/src/sparql/sparql_grammar.rustpeg index f129d9e1..29c939b1 100644 --- a/src/sparql/sparql_grammar.rustpeg +++ b/src/sparql/sparql_grammar.rustpeg @@ -10,8 +10,7 @@ use std::str::FromStr; //[1] -#[pub] -QueryUnit -> Query = Query +pub QueryUnit -> Query = Query //[2] Query -> Query = _ Prologue _ q:(SelectQuery / ConstructQuery / DescribeQuery / AskQuery) _ { //TODO: ValuesClause