removed EOF operator to allow embedding in parentheses
diff --git a/src/main/antlr/CollectionQuery.g4 b/src/main/antlr/CollectionQuery.g4
index 7aad659..2c6b29b 100644
--- a/src/main/antlr/CollectionQuery.g4
+++ b/src/main/antlr/CollectionQuery.g4
@@ -65,6 +65,7 @@
expr
: (value operator)? field operator value
+//| LRB expr RRB
;
field
@@ -78,18 +79,10 @@
| regex
;
-/*
-andGroup
-: (((LRB exprGroup RRB)|expr) AND)+ ((LRB exprGroup RRB)|expr)
-;
-
-orGroup
-: (((LRB exprGroup RRB)|expr) OR)+ ((LRB exprGroup RRB)|expr)
-;
-*/
relation
: (expr|exprGroup) conj (expr|exprGroup|relation)
+//| LRB relation RRB
;
exprGroup
@@ -98,6 +91,6 @@
start
: ( expr
- | exprGroup EOF
- | relation EOF )
+ | exprGroup
+ | relation )
;
\ No newline at end of file