@ -9,8 +9,7 @@ use std::collections::BTreeMap;
#![arguments(bnodes_map: &mut BTreeMap<String, BlankNode>)]
//[2]
#[pub]
triple -> Option<Triple> =
pub triple -> Option<Triple> =
_ s:subject _ p:predicate _ o:object _ "." _ comment? EOL? { Some(Triple::new(s, p, o)) } /
_ comment? EOL? { None }
@ -8,8 +8,7 @@ use std::iter;
#![arguments(state: &mut ParserState, buffer: &mut Vec<Triple>)]
//[1]
turtleDoc -> () = _ (statement _)*
pub turtleDoc -> () = _ (statement _)*
statement -> () = directive / triples "."
@ -10,8 +10,7 @@ use std::str::FromStr;
QueryUnit -> Query = Query
pub QueryUnit -> Query = Query
Query -> Query = _ Prologue _ q:(SelectQuery / ConstructQuery / DescribeQuery / AskQuery) _ { //TODO: ValuesClause