[tracker/wip/carlosg/sparql1.1: 38/113] libtracker-data: Favor NIL over '(' ... ')' in grammar



commit e6712a6f4928f7d232c360a751be96c7f53bd742
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]