From 0906b7c821fa4ff1e9e3acbe7fb428d0e0b23f1f Mon Sep 17 00:00:00 2001 From: capjamesg Date: Sat, 23 Nov 2024 00:02:57 +0000 Subject: [PATCH] work on AND operator --- jamesql/rewriter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jamesql/rewriter.py b/jamesql/rewriter.py index 1893ccb..a8710c9 100644 --- a/jamesql/rewriter.py +++ b/jamesql/rewriter.py @@ -8,8 +8,8 @@ grammar = """ start: (query)+ sort_component? -or_query: (query ("OR ") query)* -and_query: (query ("AND ") query)* +or_query: (query ("OR " | "or ") query)* +and_query: (query ("AND " | "and ") query)* query: and_query | or_query | query_component query_component: (negate_query | range_query | strict_search_query | word_query | field_query | comparison)+