[tracker/wip/carlosg/sparql1.1: 112/201] libtracker-data: Favor NIL over '(' ... ')' in grammar
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/sparql1.1: 112/201] libtracker-data: Favor NIL over '(' ... ')' in grammar
- Date: Mon, 9 Sep 2019 22:28:13 +0000 (UTC)
commit a9e562ce9d32400cb9d758fd142b4a4fc03719d4
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 13 11:10:11 2019 +0200
libtracker-data: Favor NIL over '(' ... ')' in grammar
Since the NIL terminal is just "()", the expanded form would take
precendence since it allows an empty number of arguments. Handle NIL
first so we get "()" parsed as such.
src/libtracker-data/tracker-sparql-grammar.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql-grammar.h b/src/libtracker-data/tracker-sparql-grammar.h
index 0dbbf2e62..9248e888c 100644
--- a/src/libtracker-data/tracker-sparql-grammar.h
+++ b/src/libtracker-data/tracker-sparql-grammar.h
@@ -1149,7 +1149,7 @@ static const TrackerGrammarRule helper_InlineDataFull_seq_1[] = { L(OPEN_PARENS)
static const TrackerGrammarRule helper_InlineDataFull_or_1[] = { T(NIL), S(helper_InlineDataFull_seq_1), NIL
};
static const TrackerGrammarRule helper_InlineDataFull_gte0_2[] = { R(DataBlockValue), NIL };
static const TrackerGrammarRule helper_InlineDataFull_seq_2[] = { L(OPEN_PARENS),
GTE0(helper_InlineDataFull_gte0_2), L(CLOSE_PARENS), NIL };
-static const TrackerGrammarRule helper_InlineDataFull_or_2[] = { S(helper_InlineDataFull_seq_2), T(NIL), NIL
};
+static const TrackerGrammarRule helper_InlineDataFull_or_2[] = { T(NIL), S(helper_InlineDataFull_seq_2), NIL
};
static const TrackerGrammarRule helper_InlineDataFull_gte0_3[] = { OR(helper_InlineDataFull_or_2), NIL };
static const TrackerGrammarRule rule_InlineDataFull[] = { OR(helper_InlineDataFull_or_1), L(OPEN_BRACE),
GTE0(helper_InlineDataFull_gte0_3), L(CLOSE_BRACE), NIL };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]