|
|
@ -1741,7 +1741,8 @@ parser! { |
|
|
|
l:RDFLiteral() { l.into() } / |
|
|
|
l:RDFLiteral() { l.into() } / |
|
|
|
l:NumericLiteral() { l.into() } / |
|
|
|
l:NumericLiteral() { l.into() } / |
|
|
|
l:BooleanLiteral() { l.into() } / |
|
|
|
l:BooleanLiteral() { l.into() } / |
|
|
|
BuiltInCall() |
|
|
|
BuiltInCall() / |
|
|
|
|
|
|
|
TripleExpression() |
|
|
|
|
|
|
|
|
|
|
|
//[120]
|
|
|
|
//[120]
|
|
|
|
rule BrackettedExpression() -> Expression = "(" _ e:Expression() _ ")" { e } |
|
|
|
rule BrackettedExpression() -> Expression = "(" _ e:Expression() _ ")" { e } |
|
|
@ -2094,6 +2095,11 @@ parser! { |
|
|
|
t:GraphTerm() { t.into() } / |
|
|
|
t:GraphTerm() { t.into() } / |
|
|
|
t:EmbTP() { t.into() } |
|
|
|
t:EmbTP() { t.into() } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Extra rule not yet in the spec
|
|
|
|
|
|
|
|
rule TripleExpression() -> Expression = "<<" _ s:Expression() _ p:Expression() _ o:Expression() _ ">>" { |
|
|
|
|
|
|
|
Expression::FunctionCall(Function::Triple, vec![s, p, o]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//space
|
|
|
|
//space
|
|
|
|
rule _() = quiet! { ([' ' | '\t' | '\n' | '\r'] / comment())* } |
|
|
|
rule _() = quiet! { ([' ' | '\t' | '\n' | '\r'] / comment())* } |
|
|
|
|
|
|
|
|
|
|
|