Simple but efficient SPARQL query parser optimization in debug (x3)

pull/10/head
Tpt 5 years ago
parent 7acb99ab13
commit cf0fddf2b4
  1. 4
      lib/src/sparql/sparql_grammar.rustpeg

@ -741,12 +741,12 @@ UnaryExpression -> Expression =
//[119] //[119]
PrimaryExpression -> Expression = PrimaryExpression -> Expression =
BrackettedExpression / BrackettedExpression /
BuiltInCall /
iriOrFunction / iriOrFunction /
v:Var { Expression::Constant(v.into()) } /
l:RDFLiteral { Expression::Constant(l.into()) } / l:RDFLiteral { Expression::Constant(l.into()) } /
l:NumericLiteral { Expression::Constant(l.into()) } / l:NumericLiteral { Expression::Constant(l.into()) } /
l:BooleanLiteral { Expression::Constant(l.into()) } / l:BooleanLiteral { Expression::Constant(l.into()) } /
v:Var { Expression::Constant(v.into()) } BuiltInCall
//[120] //[120]
BrackettedExpression -> Expression = '(' _ e:Expression _ ')' { e } BrackettedExpression -> Expression = '(' _ e:Expression _ ')' { e }

Loading…
Cancel
Save