Skip to content

Commit

Permalink
Swap arguments to fix parsing issue and simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Feb 10, 2025
1 parent 6379726 commit 6011640
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/parser/RdfParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,13 @@ bool TurtleParser<T>::objectList() {
// ______________________________________________________
template <class T>
bool TurtleParser<T>::verb() {
return predicateSpecialA() || predicate();
return predicate() || predicateSpecialA();
}

// ___________________________________________________________________
template <class T>
bool TurtleParser<T>::predicateSpecialA() {
tok_.skipWhitespaceAndComments();
if (auto [success, word] = tok_.template getNextToken<TurtleTokenId::A>();
success) {
(void)word;
if (parseTerminal<TurtleTokenId::A>()) {
activePredicate_ = TripleComponent::Iri::fromIriref(
"<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>");
return true;
Expand Down

0 comments on commit 6011640

Please sign in to comment.